Re: passwd file
From: Matt (nospam_ng_at_fileholder.net)
Date: Tue, 14 Dec 2004 00:10:45 -0600
>>I have a password file that looks like so.
>>Can anyone tell me how this hashed password is generated? I know its a
>>way hash and I cannot reverse it. I just want to know how the output was
> The two first characters are 'salt' used for the hashing, the rest is the
> hash result of 'crypt()'.
> An example to hash the word 'password' with salt 'xx' in perl:
> perl -e 'print crypt("password","xx"),"\n";'
This is exactly the info I needed. I was able to export my database to a
report then with a script parse it and create a passwd file. Saved me a lot
> The salt used should be random (esp. DO NOT pick initial two characters of
> the password), and should consist of two characters from set
> '.', '/', 0..9, 'A'..'Z', 'a'..'z' .
> Wolf a.k.a. Juha Laiho Espoo, Finland
> (GC 3.0) GIT d- s+: a C++ ULSH++++$ P++@ L+++ E- W+$@ N++ !K w !O !M V
> PS(+) PE Y+ PGP(+) t- 5 !X R !tv b+ !DI D G e+ h---- r+++ y++++
> "...cancel my subscription to the resurrection!" (Jim Morrison)