Perl's Crypt::PasswdMD5

Jp Calderone exarkun at
Wed Aug 4 18:23:09 CEST 2004

Bart Nessux wrote:
> Does Python have anything similar to Perl's Crypt::PasswdMD5???
> I read about the crypt module... but it only does DES. Any plans to add 
> md5 or other digests to it in the future?

 >>> import crypt
 >>> crypt.crypt('foo bar', '$1$salt')

   I forget the algorithm used to determine 'salt', but I'm sure it's 
straightforward and well documented.


More information about the Python-list mailing list