Need a script using GlideElement to encrypt

Pooja991
Tera Contributor

As per the Washington DC upgrade , its observed the GlideEncrypter API is deprecated. I have a table in which a field stores the password as encrypted value. This encryption is done in a Business rule using the GlideEncrypter API, please find the following script snippet.

var ecrypt = new GlideEncrypter();
var value = current.u_char.toString();
value = ecrypt.encrypt(value).toString();
Need help on the script to encrypt the value using GlideElement API.
0 REPLIES 0