Groups
Sign in
Groups
web2py-users
Conversations
Labels
About
Send feedback
Help
Password storage format
32 views
Skip to first unread message
Camilo
unread,
Feb 7, 2016, 12:32:01 AM
2/7/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to web2py-users
Hi,
So am trying to validate passwords against a db generated by web2py.
The format is "pbkdf2(N,M,sha512)$X$Y". I suppose N is iterations (although it seems kind of low), X is salt and Y is encrypted. What would M be?
Thank you
Massimo Di Pierro
unread,
Feb 7, 2016, 12:50:31 AM
2/7/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to web2py-users
N is iterations and M is key length.
You can use the CRYPT validator to check them automatically
>>> alg = 'pbkdf2(1000,20,sha512)'
>>> a = str(CRYPT(digest_alg=alg,salt=True)('test')[0])
>>> a == 'pbkdf2(1000,20,sha512)$...$...'
Reply all
Reply to author
Forward
0 new messages