// ServiceNow

Encryption and decryption

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);

 

// JOIN THE CONVERSATION

Share your experience

Bir sorunun, farklı bir çözümün veya eklemek istediğin bir notun var mı? Giriş yapmadan da yazabilirsin.

// KEEP READING

One more note.

All posts ↗︎