New submission from Ron Reiter :
import crypt
Expected result:
>>> crypt.crypt("test") == crypt.crypt("test")
False
>>> crypt.crypt("test", crypt.mksalt()) == crypt.crypt("test", crypt.mksalt())
False
Unexpected results:
>>
Ron Reiter added the comment:
import crypt
Expected result:
>>> crypt.crypt("test") == crypt.crypt("test")
False
>>> crypt.crypt("test", crypt.mksalt()) == crypt.crypt("test", crypt.mksalt())
False
Unexpected results:
>>
Ron Reiter added the comment:
You guessed it, the salt is "$6"
--
___
Python tracker
<https://bugs.python.org/issue33213>
___
___
Python-bugs-l
Ron Reiter added the comment:
Apparently it's a Mac issue. My crypt.methods only contains
[] which is probably why this fails. It's a silent failure
of some sort that is causing this.
--
___
Python tracker
<https://bugs.python.o
Ron Reiter added the comment:
Python 3.6.4 (default, Mar 22 2018, 23:35:12)
[GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.39.2)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import crypt
>>&g
Ron Reiter added the comment:
Also:
>>> crypt.crypt("test", "$5")
'$5yVOkTkyRzn.'
>>> crypt.crypt("test", "$6")
'$6asQOJRqB1i2'
>>> crypt.crypt("test", "$7")
'$7tSOkvDyiL6U
Change by Ron Reiter :
--
title: crypt function not hashing properly -> crypt function not hashing
properly on Mac (uses a specific salt)
___
Python tracker
<https://bugs.python.org/issu
Change by Ron Reiter :
--
type: -> security
___
Python tracker
<https://bugs.python.org/issue33213>
___
___
Python-bugs-list mailing list
Unsubscrib