Message381615
I am having an issue with crypt library (Lib/crypt.py) when hashing passwords containing dolalr sign ("$") . I am using python 3.8.5 on Linux. To compare hashed passwords produced by crypt, I used openssl utilities.
When generating hashes for password without "$", crypt and openssl return the same result.
But when generating hashes for passwords containing $ dollar sign, crypt returns a result different from the result returned by openssl:
openssl passwd -6 "cash$money"
$6$C0UG33RcHmBVAjQ/$j1Tm2WSaZzDIzVQTgk71z6nY7fiJnaLe6Lxy8DzGystQ1Jive7IuqIUJq5s2F9wdXRpm8jNs7iksV8oHPVKYC0
python3 -c 'import crypt; print(crypt.crypt("cash$money","$6$C0UG33RcHmBVAjQ/"))'
$6$C0UG33RcHmBVAjQ/$Tm9aYQq7BsTT/awN6wiUZ6ysamqX9qUVKBV.TjML5udxWqupAB7luv/.KYypZnpQ9eI33R4Lw3O4Jx4NZjTEV/
I did not find a special mention for dollar sign in the documentation. Thanks for your help. |
|
Date |
User |
Action |
Args |
2020-11-22 14:23:49 | m.stoichkovaaa | set | recipients:
+ m.stoichkovaaa |
2020-11-22 14:23:49 | m.stoichkovaaa | set | messageid: <1606055029.24.0.350061421164.issue42437@roundup.psfhosted.org> |
2020-11-22 14:23:49 | m.stoichkovaaa | link | issue42437 messages |
2020-11-22 14:23:49 | m.stoichkovaaa | create | |
|