If you do db.auth_user.validate_and_insert(...) to insert a new record, it will run all the validators just like when a form is submitted, so it should handle the hashing as usual (there's also a .validate_and_update()method for updates).
Anthony On Thursday, January 31, 2013 2:53:46 AM UTC-5, Hassan Alnatour wrote: > > Dear ALL , > > How can i find the salt used in web2py to encrypt the passwords ? now as i > understand if i want to encrypt the password manually i need to do it like > this ? > > CRYPT(digest_alg='md5',key='mykey',salt=True) > > is this correct , am a bit lost !! i need to understand how can i do the > same password encryption done to the passwords in the auth_user > table manually ? > > Best Regards , > > -- --- 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/groups/opt_out.