|
|
jCIFS (http://jcifs.samba.org) has code to generate the hashes in
Java; attached is a standalone class that will do it as well (most is
MD4-related stuff; if you have a security provider that supports MD4
you can cut that out also).
Eric
> I've recently been working on a Java web app to change Windows passwords
> stored in Sun Identity Server (iPlanet/Sun One). I've run into an issue
> where I was having problems hashing the passwords in Java, so I wrote a
> wrapper to contain the mkntpwd program into a library that implements the
> Java Native Interface. This allows a Java application to generate LM and
> NT hashes without too much trickery. I've got the sources on my website,
> and the only file I've modified from the original was the Makefile.
|
|