mkntpwd: New Java JNI interface

Eric Glass eric.glass at gmail.com
Sat Feb 18 11:51:34 GMT 2006


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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mkntpwd.java
Type: application/octet-stream
Size: 9543 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20060218/188d0755/mkntpwd.obj


More information about the samba-technical mailing list