This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients amarahzm, serhiy.storchaka
Date 2020-09-30.11:22:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1601464978.05.0.375157896902.issue41890@roundup.psfhosted.org>
In-reply-to
Content
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"))'
$6$saltySalt$v.6rXp74bIjKX42ufuY7/KWnngOAgFReenROiPODOQYzlRuE2NT4/Bgs8s4ULd3BgKNZQQ7i9GqlibMhRw2SV1
History
Date User Action Args
2020-09-30 11:22:58serhiy.storchakasetrecipients: + serhiy.storchaka, amarahzm
2020-09-30 11:22:58serhiy.storchakasetmessageid: <1601464978.05.0.375157896902.issue41890@roundup.psfhosted.org>
2020-09-30 11:22:58serhiy.storchakalinkissue41890 messages
2020-09-30 11:22:57serhiy.storchakacreate