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

 

// FEEDBACK

Was this useful?

Your rating shows how helpful this note is to other readers.

Was this useful?

Click the stars to rate.

Average rating 0 / 5. Total votes: 0

No one has rated this post yet. Be the first!

Sorry this post was not helpful.

Your feedback is valuable to us.

How can we make this post more helpful?

// JOIN THE CONVERSATION

Share your experience

Got a question, a different solution or a note to add?

// KEEP READING

One more note.

All posts ↗︎