[issue22432] function crypt not working on OSX

2014-09-17 Thread Mark Wieczorek
New submission from Mark Wieczorek: Hi, I just wanted to let you know of a bug that is related to the function crypt in osx (10.9.4). I have tried the default osx version of python (2.75), the brew version (2.7.8), and the macports version (2.7.7). In short, the command python -c 'import

[issue22432] function crypt not working on OSX

2014-09-17 Thread Geoffrey Spear
Geoffrey Spear added the comment: The same behavior exists in Python 3, however, I'm not sure it's a bug. The documentation says The characters in salt must be in the set [./a-zA-Z0-9]. Presumably the behavior when there is a $ in the salt is undefined by Python, and different on different

[issue22432] function crypt not working on OSX

2014-09-17 Thread Mark Wieczorek
Mark Wieczorek added the comment: It actually doesn't even matter what you use for salt. If you change salt, you get the same hash. That is bug #2 ! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22432

[issue22432] function crypt not working on OSX

2014-09-17 Thread Geoffrey Spear
Geoffrey Spear added the comment: This is actually the expected behavior of crypt(3) on OS X. It doesn't support the $id$ modular format, and if the salt does not begin with an underscore only the first 2 bytes are used (presumably in your bug #2 you're changing parts of the salt beyond the

[issue22432] function crypt not working on OSX

2014-09-17 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +r.david.murray resolution: - not a bug stage: - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22432