Perl's Crypt::PasswdMD5
Jp Calderone
exarkun at divmod.com
Wed Aug 4 12:23:09 EDT 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')
'$1$salt$LAwA5cAKtcsGTJGx.bMTC1'
>>>
I forget the algorithm used to determine 'salt', but I'm sure it's
straightforward and well documented.
Jp
More information about the Python-list
mailing list