Change by Ron Reiter <ron.rei...@gmail.com>:
--
type: -> security
___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue33213>
___
__
Change by Ron Reiter <ron.rei...@gmail.com>:
--
title: crypt function not hashing properly -> crypt function not hashing
properly on Mac (uses a specific salt)
___
Python tracker <rep...@bugs.python.org>
<https://bugs.pyt
Ron Reiter <ron.rei...@gmail.com> added the comment:
Also:
>>> crypt.crypt("test", "$5")
'$5yVOkTkyRzn.'
>>> crypt.crypt("test", "$6")
'$6asQOJRqB1i2'
>>> crypt.crypt("test", "$7")
'$7tSOkvDyiL6U'
Ron Reiter <ron.rei...@gmail.com> 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 infor
Ron Reiter <ron.rei...@gmail.com> 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 tracke
Ron Reiter <ron.rei...@gmail.com> added the comment:
You guessed it, the salt is "$6"
--
___
Python tracker <rep...@bugs.python.org>
<https://b
Ron Reiter <ron.rei...@gmail.com> 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
New submission from Ron Reiter <ron.rei...@gmail.com>:
import crypt
Expected result:
>>> crypt.crypt("test") == crypt.crypt("test")
False
>>> crypt.crypt("test", crypt.mksalt()) == crypt.crypt("test", crypt.mksalt())
False