You can encrypt a value in ServiceNow with the following code block. By putting this code, which runs on the server side, into a Script Include, you can also call it from the client side.
var encr = new GlideEncrypter();
var clearString = 'şifrelenecekYazı';
//şifreleme yapılıyor.
var encrString = encr.encrypt(clearString);
//şifre çözülüyor.
var decrString = encr.decrypt(encrString);
gs.print("Şifresi çözülen değer = " + decrString);

Share your experience
Got a question, a different solution or a note to add?
Log in or join us to write a comment.
Log in ↗︎Sign up ↗︎