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 rhettinger
Recipients Ron Reiter, christian.heimes, mark.dickinson, rhettinger, serhiy.storchaka
Date 2018-04-03.15:17:36
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1522768656.92.0.467229070634.issue33213@psf.upfronthosting.co.za>
In-reply-to
Content
> What's the return value of crypt.crypt("test", crypt.METHOD_SHA512) 

This is from my Mac (10.13.3):

$ python3.6
Python 3.6.4 (v3.6.4:d48ecebad5, Dec 18 2017, 21:07:28)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import crypt
>>> crypt.crypt("test", crypt.METHOD_SHA512)
'$6asQOJRqB1i2'
>>> crypt.crypt("test", crypt.METHOD_SHA512)
'$6asQOJRqB1i2'
>>> crypt.crypt("test", "$5")
'$5yVOkTkyRzn.'
>>> crypt.crypt("test", "$6")
'$6asQOJRqB1i2'
>>> crypt.crypt("test", "$7")
'$7tSOkvDyiL6U'
>>> crypt.crypt("test") == crypt.crypt("test")
False
>>> crypt.crypt("test", crypt.mksalt()) == crypt.crypt("test", crypt.mksalt())
False
History
Date User Action Args
2018-04-03 15:17:36rhettingersetrecipients: + rhettinger, mark.dickinson, christian.heimes, serhiy.storchaka, Ron Reiter
2018-04-03 15:17:36rhettingersetmessageid: <1522768656.92.0.467229070634.issue33213@psf.upfronthosting.co.za>
2018-04-03 15:17:36rhettingerlinkissue33213 messages
2018-04-03 15:17:36rhettingercreate