An implementation of the password hashing logic from http://www.passwordmaker.org/