Perl's Crypt::PasswdMD5

B

Bart Nessux

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?
 
J

Jp Calderone

Bart said:
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?

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

Jp
 
R

richard

Bart said:
Nicolas said:
* Bart Nessux [15:39 04/08/04 CEST]:
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?


http://www.python.org/doc/current/lib/module-md5.html

Try to be lucky with google using this search string : "python md5"

That's not comparable to Crypt::passwdMD5

Assume that we're not Perl programmers.


Richard
 
J

Jeff Epler

'$1$salt$LAwA5cAKtcsGTJGx.bMTC1'

Support for MD5 passwords is a GNU extension (according to my manpage
for crypt(3). Python directly calls the platform's crypt(), so if your
system's crypt is extended, Python will benefit from it.

Whether this helps the OP, I dunno.

I glanced at the Perl module he mentioned. It looks pretty dull. You
could implement it in Python using the md5 module pretty quickly,
assuming you had some test vectors to test against.

Jeff

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFBEXo+Jd01MZaTXX0RAlpDAJ49xd16WDpD2n1wEi1EGhhD/PEG5QCfUSna
16s5bUTDl5lRS+YVnqMNT4A=
=nyqr
-----END PGP SIGNATURE-----
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,202
Messages
2,571,057
Members
47,666
Latest member
selsetu

Latest Threads

Top