Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to make NT LM hashes in Java?

710081Sep 20 2007 — edited Sep 20 2007
>
When a user types a new plaintext password, Microsoft runs it through two hash algorithms, one for the regular NT hash and one for the LANMAN hash. To calculate the regular NT hash, Microsoft converts the password to Unicode and then runs it through a MD4 hash algorithm to obtain a 16-byte value.

To calculate the LAN Manager hash, Microsoft pads the password with 0's until it has a length of 14 characters. It is then converted to uppercase and split into two 7-character pieces. An 8-byte odd parity DES (data encryption standard) key is calculated from each half, and then the DES keys are encrypted and combined to get a 16-byte, one-way hash value.


Can anyone please show a me a code that does that. Or a package that
can do this? But some source code will be very useful, especially for LM hash witch is harder to generate.

How can I compute NT LM hashes in Java?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 18 2007
Added on Sep 20 2007
3 comments
1,152 views