iPhone Password Hash Generator

If you'd like a simple password hash creator for the iPhone that doesn't require running a program locally, look no further! Enter the desired password and salt below and the script will spit out the matching hash, which you can then use in /etc/master.passwd for any user. Any two characters will work for the salt, though it's most predictable if you limit yourself to an alphanumeric salt. You can always leave the default in place.

You can download the original master.passwd if yours gets confused.

Password: Salt:

Comments

Is the "Salt" always in the first two chars of the hash?
  • Ethan
  • June 14, 2008
  • 10:40 am
Yes. The salt exists to add entropy to the hash, to prevent the use of things like rainbow tables (see Wikipedia). It also prevents viewers from knowing, based on looking at the hash alone, that any two users have the same password.

When the password checker needs to confirm that an entered password is valid, it produces the hash of the password and compares it with the one in the file. The salt has to be included with the hash so that the password-checking algorithm knows which hash to create for comparison.
Please wait ...

There was an error fetching the requested dialog.