shazaman23 / webapp-improved

Automatically exported from code.google.com/p/webapp-improved
Other
0 stars 0 forks source link

Possibility of SHA512 for Passwords #57

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What version of the product are you using? On what operating system?
webapp2 on Google App Engine SDK version 1.6.6

In webapp2_extras/appengine/auth/models.py next code doesn't allow me to create 
passwords with SHA 512

if 'password_raw' in user_values:
            user_values['password'] = security.generate_password_hash(
                user_values.pop('password_raw'), length=12)

Original issue reported on code.google.com by rodrigo....@gmail.com on 27 May 2012 at 5:30

GoogleCodeExporter commented 8 years ago
You could override the webapp2_extras.appengine.auth.models.User.create_user() 
method so that you can directly control the calls the 
webapp2_extras.security.generate_password_hash() method. That would allow you 
to use any hashlib hashing method you feel is appropriate.

Original comment by jml...@gmail.com on 5 Jun 2012 at 11:19