Compute the LM Hash and NT Hash for a password.
Use at your own risk.
When a user logs into a Windows machine, the user password is encrypted (hashed) using two methods. The first method uses DES to create the LM Hash. The second method uses MD4 to create the NT Hash. This applet can create the LM Hash and the NT Hash. This applet uses Java DES encryption and the GNU encryption library for the MD4 hash function. To verify this applet is working correctly check the Java console in your browser for output as the applet loads. This applet only works for keyboard characters (US keyboards). This applet is for recreational purposes only. To create the LM Hash the following steps are performed:
1) Force the password to be 14 characters. This means dropping any characters over 14, or padding the password with "null" bytes to a length of 14. 2) Convert the password to uppercase. 3) Break the 14 character password into 2 7-character chunks. 4) Use each of the 7 character chunks as a key to encrypt the constant string KGS!@#$% using DES. 5) Concatenate the two results together to create the LM Hash.To create the NT Hash the following steps are performed.
1) Convert the password to Unicode (using Little Endian). 2) Compute the MD4 hash of the Unicode text.If you are interested in passwords I recommend you read this article about Windows Passwords.