Unable to decrypt password2 value using GlideEncrypter() in scoped application.

mansing
Giga Contributor

We are trying to decrypt password2 value and found out that below code fails in scoped app. 

var Encrypter = new GlideEncrypter();
var decrypted_password = Encrypter.decrypt(inputs.password);

Further we tried with below one and no go.

var decrypt = pwd.getDecryptedvalue();

 

Any help here please?

6 REPLIES 6

It won't work since u_test_password is in global scope.

 

Regards,

Sachin

sabell2012
Mega Sage
Mega Sage

Mansing:

Try this:

var decrypt = inputs.password.getDecryptedValue();

This works fine in scope.

See if that works for you.

Steven.