djeraseit / passlib

Automatically exported from code.google.com/p/passlib
Other
0 stars 0 forks source link

passlib.hash.mysql* doesn't work on its own #15

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. import passlib.hash
2. passlib.hash.mysql141.encrypt("helloworld") (or mysql1323)
3. AttributeError: unknown password hash: 'mysql141'

What is the expected output? What do you see instead?

A hash. AttributeError.

What version of the product are you using? On what operating system?

1.4 (freshly installed via pip) on Python 2.7 (Installed via Homebrew) on Mac 
OS X 10.6.7.

Please provide any additional information below.

The hashing works via CryptContext so no worries there but since this is listed 
in the documentation as an alternative (and the first one I tried) I figured 
I'd post an issue. CryptContext is nice though so not sure if anything needs to 
be changed :)

Original issue reported on code.google.com by hag...@gmail.com on 6 Jun 2011 at 4:18

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
It looks like you've inserted an extra "1" (one) in the attribute name... it 
should be "mysql41", not "mysql141". Likewise for "mysql323".

(I can't tell you how many times that same typo has tried to slip into the 
passlib sourcecode). 

Original comment by elic%astllc.org@gtempaccount.com on 7 Jun 2011 at 8:06

GoogleCodeExporter commented 9 years ago

Original comment by elic%astllc.org@gtempaccount.com on 7 Jun 2011 at 8:06

GoogleCodeExporter commented 9 years ago
You are of course right, I can't believe I didn't check that better! Good thing 
I at least wrote the typo consistently in the bug-report too so it was an easy 
problem to solve :).

Thank you for your time and sorry for wasting it!

Original comment by hag...@gmail.com on 8 Jun 2011 at 3:08

GoogleCodeExporter commented 9 years ago

Original comment by elic%astllc.org@gtempaccount.com on 8 Jun 2011 at 2:04

GoogleCodeExporter commented 9 years ago

Original comment by elic@astllc.org on 12 Sep 2011 at 2:29