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)$...$...' On Saturday, 6 February 2016 23:32:01 UTC-6, Camilo wrote: > > 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 > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.