How to use unix_md5_crypt from Perl in Python?

2007-03-22 Thread Nico Grubert
Dear list members, I have a Perl script which crypts a password using a clearteaxt password and a username. Example: username = '[EMAIL PROTECTED]' password = 'root' The crypted password is: 'roK20XGbWEsSM' The crypted password always starts with the first 2 characters of the username

Re: How to use unix_md5_crypt from Perl in Python?

2007-03-22 Thread Paul Rubin
Nico Grubert [EMAIL PROTECTED] writes: Example: username = '[EMAIL PROTECTED]' password = 'root' The crypted password is: 'roK20XGbWEsSM' that looks like you want crypt(3), not md5. See: http://docs.python.org/lib/module-crypt.html Sample session: import crypt print