GlideEncrypter API is deprecated, GlideElement API is suggested for encryption using setDisplayValue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2024 02:21 AM
Hi All,
GlideEncrypter API is deprecated, GlideElement API is suggested for encryption using setDisplayValue() method.
I am not able to achieve the result using the same API and method.
Ca someone help how we can encrypt the data using this API, or if there is any other alternative.
Please hep with the piece of code

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2024 04:41 AM
Well that's half your issue, why are you storing an encrypted value in a nom-encrypted field?
What are you trying to achieve?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2024 04:19 AM
Hi there,
This might help you:
- 2024-01-15 - Article - GlideEncrypter API not permitted beginning with the Xanadu release
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2024 09:20 PM
Hi @abhiax2727 ,
Were you able to resolve you issue. I have an existing piece of code like the below where the encrypted string is being used in a workflow scratchpad, and needs to be updated. Do you have any suggestions on an alternative?
var clearString = 'abcd';
var encr = new GlideEncrypter();
var encrString = encr.encrypt(clearString);
workflow.scratchpad.encr = encrString;