Harden the security where hash values are compared