GlideEncrypter API is deprecated, GlideElement API is suggested for encryption using setDisplayValue

abhiax2727
Tera Contributor

Hi All,

 

GlideEncrypter API is deprecated, GlideElement API is suggested for encryption using setDisplayValue() method.
I am not able to achieve the result using the same API and method.

Ca someone help how we can encrypt the data using this API, or if there is any other alternative.

Please hep with the piece of code 

7 REPLIES 7

Kieran Anson
Kilo Patron

What have you tried so far?

From memory, the format would be:

//<gliderecordObj>.<field>.setDisplayValue(<value>)
current.password.setDisplayValue('mySecurePassword');
current.setDisplayValue('password' , 'mySecurePassword');

abhiax2727
Tera Contributor

Given solution is not working for me,
I tried two ways, can you please check and correct me 

Also  please let me know how setDisplayValue() will encrpyt the password when it return void 

abhiax2727_0-1716533035818.png

abhiax2727_1-1716533062513.png

 

What's the field type of u_password. Further details can be found in KB1320986 

Field is of string type