- 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-18-2018 07:16 AM
Perfect. But how can I visualize it with dots or asterisks?