[web2py] Re: How to encrypt password

2021-07-30 Thread Dave S
On Friday, July 30, 2021 at 1:34:44 PM UTC-7 isi_jca wrote: > Hi everybody: > > I was able to solve my problem. > >> >> Good to hear! /dps -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/w

[web2py] Re: How to encrypt password

2021-07-30 Thread isi_jca
Hi everybody: I was able to solve my problem. def validar_password(form): entered_password = str(form.vars.new_password) entered_password = entered_password.strip() new_password = request.vars.new_password #Retrieve passwords rows_password = db(db.thist_password.usrid == aut

[web2py] Re: How to encrypt password

2021-07-28 Thread isi_jca
Hello! I was doing a test. rows_password = db(db.thist_password.usrid == auth.user_id).select(db.thist_password.password) for j in rows_password: #Get digest_alg salt, hash and original hash (digest_alg, salt, save_hash) = j.password.split('$') #Encrypt

[web2py] Re: How to encrypt password

2021-07-22 Thread Dave S
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