Remove useless hashing algorithm.
Fix bug that broke encryption.