use toString('hex') cmp instead of hash_file cmp