| 1 |
Crypt/SmbHash version 0.01 |
| 2 |
========================== |
| 3 |
|
| 4 |
This module provides functions to generate LM/NT hashes used in Samba's |
| 5 |
'password' files, like smbpasswd. |
| 6 |
|
| 7 |
The module is written entirely in perl, so it's a slower implementation |
| 8 |
that if it was written in C, its easily ported and installed. |
| 9 |
|
| 10 |
Example use: |
| 11 |
|
| 12 |
use Crypt::SmbHash; |
| 13 |
ntlmgen $ARGV[0], $lm, $nt; |
| 14 |
print "root:0:${lm}:${nt}:[U ]:LCT-35463AFF\n"; |
| 15 |
|
| 16 |
INSTALLATION |
| 17 |
|
| 18 |
To install this module type the following: |
| 19 |
|
| 20 |
perl Makefile.PL |
| 21 |
make |
| 22 |
make test |
| 23 |
make install |
| 24 |
|
| 25 |
DEPENDENCIES |
| 26 |
|
| 27 |
This module should work out-of-the-box, although only tested with |
| 28 |
perl 5.005 and perl 5.6.1 |
| 29 |
|
| 30 |
The generation of NT hashes requires an md4 algorithm, and although |
| 31 |
Crypt::SmbHash has it's own version of md4 hashing, things are alot |
| 32 |
faster if Digest::MD4 is installed aswell. Crypt::SmbHash will |
| 33 |
automatically use Digest::MD4 if it detects that Digest::MD4 is |
| 34 |
installed. |
| 35 |
|
| 36 |
COPYRIGHT AND LICENCE |
| 37 |
|
| 38 |
Copyright (C) 2001 Benjamin Kuit <[email protected]> |
| 39 |
Ported from Samba. |
| 40 |
Samba is Copyright (C) Andrew Tridgell 1997-1998 |
| 41 |
|