|
Project Information
Members
|
This module can generate both LANMAN and NT password hashes, suitable for use with Samba. Sample usage: 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) Output is: LANMAN hash is 74AC99CA40DED420DC1A73E6CEA67EC5 NT hash is A991AE45AA987A1A48C8BDC1209FF0E7 both hashes at once = 74AC99CA40DED420DC1A73E6CEA67EC5:A991AE45AA987A1A48C8BDC1209FF0E7 (lm:nt) |