MD5 - Passwords with python

Suchandra Thapa ssthapa at midway.uchicago.edu
Sat Jul 1 17:17:45 EDT 2000


holger at fuessler-net.de <holger at fuessler-net.de> wrote:
>Hallo!
>
>Now I've got it. It's f for followup and not r for reply mail (in TIN). I
>was wondering if somebody kills my followups ;-)
>
>Unfortunately, the standard MD5-module doesn't know about the structure of
>the password-string so I can't encode a password with it. I found a perl
>module which accomplishs my task and so I thought that there is also a python
>module. I thought redhat uses a lot of python stuff, so there should be a
>routine to generate suitable passwords. I'v already posted in
>comp.redhat.security. When I find the details, I'll post them here (if I can
>translate them to python). 

    I vaguely remember the format of the passwd string from having to
modify crack to use it.  Basically the beginning of the string has a salt 
enclosed between $'s.  This is either appended or prepended to the password
and a md5sum is taken. I believe this is right but YMMV.


-- 
------------------------------------------------------------------

Suchandra S. Thapa 
s-thapa at uchicago.edu

------------------------------------------------------------------



More information about the Python-list mailing list