How to decrypt an encrypted field (using script)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2024 01:40 AM - edited 05-24-2024 01:58 AM
Hi All.
I want to know how to decrypt an encrypted field.
I made encrypted field on variable set.
But I can't decrypt the field at script.
getDecryptedValue() doesn't work.
I want to know that if you know something.
-------------------------------------------------------------
I'm not good at English.
You don't know what I said, Please ask me.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2024 02:22 AM
Hi @Takumi_,
Please try this below code amd replace the field name as per your requirement below
// Get the encrypted field value var encryptedValue = current.encrypted_field_name; // Decrypt the value var decrypter = new GlideEncrypter(); var decryptedValue = decrypter.decrypt(encryptedValue); // Use the decrypted value as needed gs.info("Decrypted value: " + decryptedValue);
Please accept my solution if it resolves your issue or thumps up
Thanks
Jitendra
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2024 02:48 AM
Hi.
Thank you for your response.
Someone told me that GlideEncrypter doesn't work at Xanadu.
So I'm looking for other way.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-27-2024 07:15 AM
Hi,
have a look at GlideCryptoModule and it's associated methods.
Using these methods you can decrypt encrypted fields if you have access to the CryptoModule.
BR Ted