On Thursday, July 22, 2021 at 10:47:08 AM UTC-7 isi_jca wrote:

> Hello!
> I have a historical table where I save  n passwords by users so, I want to 
> validate in the next change password that the user don't repeat the 
> password. I need to encrypt the password and make a query in historical 
> table.
> How can I do to encrypt the password in Web2py?
>
> Best regards.



There are relevant validators in the FORM system.  Take a look at 
<URL:http://web2py.com/books/default/chapter/29/07/forms-and-validators#Complexity-and-security-validators>
and see if they help.  The CRYPT() validator should do what you need, I 
think.

This is aside from any tools in your front end.
 
/dps

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/6309c286-25dc-4b3d-88aa-687f15133fbbn%40googlegroups.com.

Reply via email to