How to re-implement the crypt.crypt function?
Christian Heimes
lists at cheimes.de
Sat Mar 10 15:16:52 EST 2012
Am 10.03.2012 20:33, schrieb Cosmia Luna:
> I'm not searching for a full solution and only want to know how to use hashlib to create a equivalent string like
If you chance your mind and choose to use a full solution, then I highly
recommend passlib [1]. It has an implementation of SHA-512 crypt as
indicated by the number 6 in the header of your string.
By the way "$6$ds41p/9VMA.BHH0U" is *not* the salt. Just
"ds41p/9VMA.BHH0U" is the salt, 6 is a hash identifier.
Christian
[1] http://packages.python.org/passlib/
More information about the Python-list
mailing list