[issue41890] crypt produces wrong hashes for passwords containing newline character

2020-09-30 Thread Hazem Amara
Hazem Amara added the comment: Thanks for your answer :) -- stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue41890] crypt produces wrong hashes for passwords containing newline character

2020-09-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: For openssl and mkpasswd the password does not contain the newline character. It contains a pair of characters "\" and "n". And the crypt module produces the same output for it: $ python3 -c 'import crypt; print(crypt.crypt(r"password\n","$6$saltySalt"))'

[issue41890] crypt produces wrong hashes for passwords containing newline character

2020-09-30 Thread Hazem Amara
Change by Hazem Amara : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41890] crypt produces wrong hashes for passwords containing newline character

2020-09-30 Thread Hazem Amara
New submission from Hazem Amara : I am having an issue with crypt library (Lib/crypt.py) when hashing passwords containing \n character. I am using python 3.8.2 on Linux. To compare hashed passwords produced by crypt, I used openssl and mkpasswd utilities. When generating hashes for