So you might consider explaining what you try to achieve so we surely can propose you some other, maybe better, way.
Richard On Fri, Apr 6, 2018 at 3:06 PM, Luis Sucuc <jlsu...@gmail.com> wrote: > Mi propósito es editar los datos de usuario desde un formulario diferente > a SQLFORM. Ya lo hago, pero necesito mostrar el número correcto de '****' > en el input de contraseña, pero entiendo que no lo puedo hacer. ¡Gracias! > > > El viernes, 6 de abril de 2018, 12:21:05 (UTC-6), pbreit escribió: >> >> You cannot. Passwords are actually one-way hashed, not encrypted. This is >> by design so that the password can never be figure out even if your >> database and code are compromised. What happens is that the password the >> user enters is hashed in the same way and the result is compared to what is >> in the DB. >> >> >> On Friday, April 6, 2018 at 9:33:37 AM UTC-7, Luis Sucuc wrote: >>> >>> >>> How can I decrypt a password from the auth_user table? >>> >>> >>> user = db(db.auth_user.id == user_id).select().first() >>> print user.password >>> >>> # --output-- >>> # pbkdf2(1000,20,sha512)$8d7c80fb77386465$532cd8dd495f703337cf >>> 3c261a01801b3155f36c >>> >>> >>> >>> -- > 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. > -- 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.