SMB Password Hash Generator
Now on GitHub
This module can generate both LANMAN and NT password hashes, suitable for use with Samba.
import smbpasswd passwd = 'mypassword' print 'LANMAN hash is', smbpasswd.lmhash(passwd) print 'NT hash is', smbpasswd.nthash(passwd) print 'both hashes at once = %s:%s (lm:nt)' % smbpasswd.hash(passwd)
Repackaged slightly for PyPi, mainly changing the directory the TGZ file extracts into from "py-smbpasswd-x.x.x" to "smbpasswd-x.x.x".
None of the actual C or Python code in the library changed one bit. The setup.py just changed to reflect the version number bump and include some trove classifiers.
Version 1.0.1 behaves identically to version 1.0, the only changes were the fixing of two minor compile warnings, and clarification in the included documentation that the software is GPL.