Python SMB Password Hash Generator - suitable for use with Samba
C Python
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
.travis.yml
CHANGES.txt
COPYING.txt
MANIFEST
MANIFEST.in
README.md
md4.c
setup.py
smbdes.c
smbpasswd.c
tests.py

README.md

Build Status

smbpasswd

Python SMB Password Hash Generator module

2002-10-27 Barry Pederson <bp@barryp.org>

INSTALLATION

  1. Unpack the distribution.

     tar xzvf smbpasswd-1.0.2.tgz
    
  2. Compile and install.

     cd smbpasswd-1.0.2
     python setup.py install
    

SAMPLE USAGE

In Python:

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' % smbpasswd.hash(passwd)

                                        Enjoy