- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-17-2018 03:40 AM
Hi to all,
I have an include script that generates a password automatically, I would like to save this value in a field of a custom table, but in encrypted way not visible to users who access the table.
Also I would also need to decrypt it later to send it via email notification.
What is the best way to perform encryption-decryption of an alphanumeric string?
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-17-2018 04:10 AM
Hi,
The below link may help you.
var encr = new GlideEncrypter();
var clearString = 'abcdefg';
var encrString = encr.encrypt(clearString);
var decrString = encr.decrypt(encrString);
gs.print("Decrypted string = " + decrString);
Thanks,
Archana

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-17-2018 04:10 AM
Hi,
The below link may help you.
var encr = new GlideEncrypter();
var clearString = 'abcdefg';
var encrString = encr.encrypt(clearString);
var decrString = encr.decrypt(encrString);
gs.print("Decrypted string = " + decrString);
Thanks,
Archana
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-19-2019 03:45 AM
Hi Archana,
Is it possible to use the external library to encrypt and decrypt the data. like: use the 'cdn' files. If yes, Please let me know the process.
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-09-2024 12:19 AM
hii archna this api is out dated
https://developer.servicenow.com/dev.do#!/reference/api/washingtondc/server/sn_kmf_ns-namespace/KMFC...
by using this api how will do the same thing
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-01-2024 07:29 AM
how to use the same inside of a UI Macros function, i'm adding multiple credentials to a list using UI macro function and i need to encrypt the creds.