Helper class to hash passwords.