[issue10924] Adding salt and Modular Crypt Format to crypt library.

2012-06-27 Thread Christian Heimes
Changes by Christian Heimes : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue10924] Adding salt and Modular Crypt Format to crypt library.

2012-06-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset 74a1110a3b50 by Christian Heimes in branch 'default': Issue 10924: Fixed mksalt() to use a RNG that is suitable for cryptographic purpose http://hg.python.org/cpython/rev/74a1110a3b50 -- nosy: +python-dev _

[issue10924] Adding salt and Modular Crypt Format to crypt library.

2012-06-26 Thread Christian Heimes
Christian Heimes added the comment: I just found mksalt in the whatsnew section and got curious how you've implemented the function. IMHO it has one major security flaw. The function uses random.choice(). The choice() function generates random values with a Mersenne Twister. However MTs are n

[issue10924] Adding salt and Modular Crypt Format to crypt library.

2011-03-06 Thread SilentGhost
Changes by SilentGhost : -- Removed message: http://bugs.python.org/msg130171 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue10924] Adding salt and Modular Crypt Format to crypt library.

2011-03-06 Thread SilentGhost
SilentGhost added the comment: Above-mentioned fix was committed in 0586c699d467 and 62994662676a -- ___ Python tracker ___ ___ Pytho

[issue10924] Adding salt and Modular Crypt Format to crypt library.

2011-03-06 Thread SilentGhost
SilentGhost added the comment: Above-mentioned fix was commited in rev 62994662676a -- ___ Python tracker ___ ___ Python-bugs-list ma

[issue10924] Adding salt and Modular Crypt Format to crypt library.

2011-03-03 Thread Dave Malcolm
Changes by Dave Malcolm : -- nosy: +dmalcolm ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue10924] Adding salt and Modular Crypt Format to crypt library.

2011-02-22 Thread Brett Cannon
Brett Cannon added the comment: The patch didn't even import as-is or past the tests, but I tweaked it so it did (and made method() just an attribute on the module). -- resolution: accepted -> fixed stage: patch review -> committed/rejected status: open -> closed _

[issue10924] Adding salt and Modular Crypt Format to crypt library.

2011-02-22 Thread Brett Cannon
Brett Cannon added the comment: I will look at the patch. -- assignee: jafo -> brett.cannon nosy: +brett.cannon stage: committed/rejected -> patch review ___ Python tracker ___

[issue10924] Adding salt and Modular Crypt Format to crypt library.

2011-02-22 Thread SilentGhost
SilentGhost added the comment: Here is the patch fixing pep-8 compatibility and test. It is against the latest commit. -- nosy: +SilentGhost status: closed -> open Added file: http://bugs.python.org/file20840/crypt.py.diff ___ Python tracker

[issue10924] Adding salt and Modular Crypt Format to crypt library.

2011-02-22 Thread Ezio Melotti
Ezio Melotti added the comment: Some buildbots are failing after the commit. Also in the crypt.py module I still see things that according to msg126453 should be fixed already: * more statements on the same line (e.g. "if salt == None: salt = mksalt()"); * the hardcoded salt values instead o

[issue10924] Adding salt and Modular Crypt Format to crypt library.

2011-02-22 Thread Sean Reifschneider
Sean Reifschneider added the comment: Committed in r88500. -- stage: commit review -> committed/rejected status: open -> closed ___ Python tracker ___ __

[issue10924] Adding salt and Modular Crypt Format to crypt library.

2011-01-24 Thread Sean Reifschneider
Sean Reifschneider added the comment: Thanks. I had just read that a day or so ago, reviewing it for Brett's work. -- ___ Python tracker ___ ___

[issue10924] Adding salt and Modular Crypt Format to crypt library.

2011-01-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: Actually, the "pending" stage is only for when things have been committed :) See http://docs.python.org/devguide/triaging.html#triaging -- resolution: later -> accepted stage: patch review -> commit review status: pending -> open __

[issue10924] Adding salt and Modular Crypt Format to crypt library.

2011-01-22 Thread Sean Reifschneider
Sean Reifschneider added the comment: At this point I'm going to consider this good to go, and will commit it after the 3.2 final release. Thanks for the review everyone. Of course, I'm open to further suggestions until then, just not expecting any... -- assignee: -> jafo keywords:

[issue10924] Adding salt and Modular Crypt Format to crypt library.

2011-01-18 Thread Sean Reifschneider
Changes by Sean Reifschneider : Removed file: http://bugs.python.org/file20443/python-underscore_crypt-6.patch ___ Python tracker ___ ___ Pyth

[issue10924] Adding salt and Modular Crypt Format to crypt library.

2011-01-18 Thread Sean Reifschneider
Changes by Sean Reifschneider : Removed file: http://bugs.python.org/file20442/python-underscore_crypt-5.patch ___ Python tracker ___ ___ Pyth

[issue10924] Adding salt and Modular Crypt Format to crypt library.

2011-01-18 Thread Sean Reifschneider
Changes by Sean Reifschneider : Removed file: http://bugs.python.org/file20433/python-underscore_crypt-4.patch ___ Python tracker ___ ___ Pyth

[issue10924] Adding salt and Modular Crypt Format to crypt library.

2011-01-18 Thread Sean Reifschneider
Sean Reifschneider added the comment: Affirmative on the "svn mv" for the C module. The duplicated code, thanks for pointing that out. Someone else mentioned it, but I didn't understand what they were saying and they didn't reply to my request for clarification. Fixed. On the modules() lis

[issue10924] Adding salt and Modular Crypt Format to crypt library.

2011-01-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Thanks for the pointer about "patch -p0". I *HAD* tried that, but it > didn't seem to work either. I'll double check that though... "svn > diff" is what I'd prefer, because then I can "svn commit" it when it's > ready. Ok, it seems the code inside crypt.py

[issue10924] Adding salt and Modular Crypt Format to crypt library.

2011-01-18 Thread Sean Reifschneider
Sean Reifschneider added the comment: Thanks for the pointer about "patch -p0". I *HAD* tried that, but it didn't seem to work either. I'll double check that though... "svn diff" is what I'd prefer, because then I can "svn commit" it when it's ready. Any other review feedback? I'll probab

[issue10924] Adding salt and Modular Crypt Format to crypt library.

2011-01-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Not sure if that was meant to be a suggestion for why my local > patching wasn't working from the "svn diff" output, but obviously -5 > was messed up. Here's a new version that I can apply to my fresh > trunk and passes "make test". Thank you! The important

[issue10924] Adding salt and Modular Crypt Format to crypt library.

2011-01-18 Thread Sean Reifschneider
Sean Reifschneider added the comment: Not sure if that was meant to be a suggestion for why my local patching wasn't working from the "svn diff" output, but obviously -5 was messed up. Here's a new version that I can apply to my fresh trunk and passes "make test". If the suggestion was how t

[issue10924] Adding salt and Modular Crypt Format to crypt library.

2011-01-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Sure thing, here's an "svn diff". I had switched to the diff because > I couldn't get it to patch into a fresh trunk, but the format looked > fine; not sure why it couldn't find the files. Anyway, here's a new > version. You also have to "svn add" the relev

[issue10924] Adding salt and Modular Crypt Format to crypt library.

2011-01-18 Thread Sean Reifschneider
Sean Reifschneider added the comment: Sure thing, here's an "svn diff". I had switched to the diff because I couldn't get it to patch into a fresh trunk, but the format looked fine; not sure why it couldn't find the files. Anyway, here's a new version. -- Added file: http://bugs.pyt

[issue10924] Adding salt and Modular Crypt Format to crypt library.

2011-01-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: Can you use "diff -u" (or simply "svn diff") when generating a patch? > 6) I don't know, I thought everything in Python 3 was a new style > class? It is indeed. -- ___ Python tracker

[issue10924] Adding salt and Modular Crypt Format to crypt library.

2011-01-18 Thread Sean Reifschneider
Changes by Sean Reifschneider : Removed file: http://bugs.python.org/file20428/python-underscore_crypt-3.patch ___ Python tracker ___ ___ Pyth

[issue10924] Adding salt and Modular Crypt Format to crypt library.

2011-01-17 Thread Sean Reifschneider
Sean Reifschneider added the comment: Thanks for the review. Attached is a new version of the patch. 1) Done. 2) Good point, I didn't think of that. I've changed it into a class that stores the methods list, and made the module "methods" point to that method on an instance of that class.

[issue10924] Adding salt and Modular Crypt Format to crypt library.

2011-01-17 Thread Nicolas Dumazet
Nicolas Dumazet added the comment: Hello, 1) Can you please avoid putting several statements in the same line? 2) wouldnt it be better to compute only once the contents of methods()? I'm not sure that module-initialization time is okay for CPython, but at the very least you can lazily fill a

[issue10924] Adding salt and Modular Crypt Format to crypt library.

2011-01-17 Thread Sean Reifschneider
Changes by Sean Reifschneider : Removed file: http://bugs.python.org/file20427/python-underscore_crypt-2.patch ___ Python tracker ___ ___ Pyth

[issue10924] Adding salt and Modular Crypt Format to crypt library.

2011-01-17 Thread Sean Reifschneider
Sean Reifschneider added the comment: I've made a new .patch file using "diff -c" rather than "svn diff". This is the same code, but applies without manual intervention. -- Added file: http://bugs.python.org/file20428/python-underscore_crypt-3.patch __

[issue10924] Adding salt and Modular Crypt Format to crypt library.

2011-01-17 Thread Sean Reifschneider
Changes by Sean Reifschneider : Removed file: http://bugs.python.org/file20422/python-underscore_crypt.patch ___ Python tracker ___ ___ Python

[issue10924] Adding salt and Modular Crypt Format to crypt library.

2011-01-17 Thread Sean Reifschneider
Sean Reifschneider added the comment: Oops, thanks. It's in there now, though for some reason I can't get this patch to apply to trunk, but I'll have to look at that later this afternoon. I wanted to get this new version up in the interim since it definitely does include the Lib/crypt.py fi

[issue10924] Adding salt and Modular Crypt Format to crypt library.

2011-01-17 Thread Antoine Pitrou
Antoine Pitrou added the comment: You forgot to add the new files to your patch. -- nosy: +pitrou ___ Python tracker ___ ___ Python-b

[issue10924] Adding salt and Modular Crypt Format to crypt library.

2011-01-17 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue10924] Adding salt and Modular Crypt Format to crypt library.

2011-01-16 Thread Sean Reifschneider
New submission from Sean Reifschneider : Over the years I've written the same code over and over to create a random salt string of 2 characters. Worse, the Modular Crypt Format is difficult to find documentation on, so creating stronger hashed passwords is difficult to get right. To that end