Re: [Tutor] hashlib problems

2010-09-11 Thread Steven D'Aprano
On Sat, 11 Sep 2010 06:54:39 am Rance Hall wrote: > I will apologize for the tone and using the word "bug" without > sufficient evidence, and I will be more thorough in the future. Using the word "bug" itself isn't the problem. Nor is it that you made a mistake -- we've all done that. A few days

Re: [Tutor] hashlib problems

2010-09-10 Thread Rance Hall
On Fri, Sep 10, 2010 at 3:12 PM, Luke Paireepinart wrote: > In general, you shouldn't even hint at the possibility of there being a bug > in the code unless you have test cases and a patch handy. Especially > something as widely used as hashlib. It  gives An air of arrogance about your > post,

Re: [Tutor] hashlib problems

2010-09-10 Thread Luke Paireepinart
In general, you shouldn't even hint at the possibility of there being a bug in the code unless you have test cases and a patch handy. Especially something as widely used as hashlib. It gives An air of arrogance about your post, whether you intend it or not. I think your issue got resolved alrea

Re: [Tutor] hashlib problems

2010-09-10 Thread Dave Angel
On 2:59 PM, Rance Hall wrote: Im wanting to use the builtin hashlib functions to encrypt passwords before storing them in a database. According to documentation on the python.org site it should be as simple as import hashlib hashname = hashlib.sha234 (or whatever other hash method you want

Re: [Tutor] hashlib problems

2010-09-10 Thread Peter Otten
Rance Hall wrote: > Im wanting to use the builtin hashlib functions to encrypt passwords > before storing them in a database. > > According to documentation on the python.org site it should be as simple > as > > import hashlib > > hashname = hashlib.sha234 (or whatever other hash method you wa

[Tutor] hashlib problems

2010-09-10 Thread Rance Hall
Im wanting to use the builtin hashlib functions to encrypt passwords before storing them in a database. According to documentation on the python.org site it should be as simple as import hashlib hashname = hashlib.sha234 (or whatever other hash method you want like md5 or whatever) hashname.up