Fixes the hash bug in encryptor class.