Implement password hashing, fixes IM-5