[issue33213] crypt function not hashing properly on Mac (uses a specific salt)

2018-04-07 Thread Ron Reiter
Change by Ron Reiter <ron.rei...@gmail.com>: -- type: -> security ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue33213> ___ __

[issue33213] crypt function not hashing properly on Mac (uses a specific salt)

2018-04-03 Thread Ron Reiter
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

[issue33213] crypt function not hashing properly

2018-04-03 Thread Ron Reiter
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'

[issue33213] crypt function not hashing properly

2018-04-03 Thread Ron Reiter
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

[issue33213] crypt function not hashing properly

2018-04-03 Thread Ron Reiter
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

[issue33213] crypt function not hashing properly

2018-04-03 Thread Ron Reiter
Ron Reiter <ron.rei...@gmail.com> added the comment: You guessed it, the salt is "$6" -- ___ Python tracker <rep...@bugs.python.org> <https://b

[issue33213] crypt function not hashing properly

2018-04-03 Thread Ron Reiter
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

[issue33213] crypt function not hashing properly

2018-04-03 Thread Ron Reiter
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