Why admin can't see user password

Khiem
Kilo Contributor

I set field in table is password(1 way encripted) but after create record,admin can't view this password.How can I make admin view this ? pls help me!find_real_file.png

1 ACCEPTED SOLUTION

Hi,

If your field type is of password2 then you can decrypt with the below code,

var Encrypter = new GlideEncrypter();   
var encrypted = current.<your_field name> ;
var decrypted = Encrypter.decrypt(encrypted);    
gs.addInfoMessage("encrypted password..   " + encrypted);   
gs.addInfoMessage("decrypted password..   " + decrypted);


View solution in original post

9 REPLIES 9

Hi,

user_password field that stores passwords with one-way encryption. One-way encryption stores the password as a secure hash value that cannot be decrypted.

 

Hi,

Check password field type in docs,

Field types

Hi,

If your field type is of password2 then you can decrypt with the below code,

var Encrypter = new GlideEncrypter();   
var encrypted = current.<your_field name> ;
var decrypted = Encrypter.decrypt(encrypted);    
gs.addInfoMessage("encrypted password..   " + encrypted);   
gs.addInfoMessage("decrypted password..   " + decrypted);


Thank a lot.I've fix my problem

Khiem
Kilo Contributor

Thank you for help me fix that problem!!!