Deprecated GlideEncrypter & .getDecryptedValue() - what alternatives ServiceNow proposes?

Andrii ICL
Tera Contributor

We have username and password field. We use to read the password field value via .getDecryptedValue() method. 

Tokio release. Suddenly .getDecryptedValue() stopped working.

 

============(A):

After googling all over internet, I figured out that we could try using GlideEncrypter: 

https://developer.servicenow.com/dev.do#!/reference/api/vancouver/server_legacy/GlideEncrypterAPI

however as you can see it is about to be deprecated and when I tried using it - it throws following error:

JavaException: java.lang.SecurityException: GlideEncrypter is not allowed in scoped applications

 

============(B):

Another option I found is to try using

global.GlideCryptoModule.getModule('global.acme_mod');

https://www.servicenow.com/community/developer-forum/glideencrypter-api-will-be-deprecated-after-van...

 

However it also didn't work.

 

So does anyone knows a solution to this? Any alternative for deprecated functionality?

4 REPLIES 4

Mark Roethof
Tera Patron
Tera Patron

Hi there,

 

Any alternative? Yes. In the communication records ServiceNow send to customers, the KB article on the Support Site (you need to be logged in for that) with details and alternatives is mentioned.

 

If you want 1 on 1 comparissions, you might want to locate an out-of-the-box script using GlideEncrypter, and compare it between a Vancouver instance and a Washington instance. As ServiceNow will update all untouched out-of-the-box scripting using this.

 

One more thing to add on this:
- 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

LinkedIn

Andrii ICL
Tera Contributor

So, in Simple words - how would sound your answer?

 

We have a field of Password2 type on  a Table and we use to leverage getDecryptedValue .. however since recentrly it stopped working and we can't really make it work properly now.

 

so we checked cross scope records - there is GlideElement.getDecryptedValue but it does not help

then we checked Module Access - all records in Tracking mode - still no result

I have the same problem, did you manage to solve that?

Andrii ICL
Tera Contributor

We ended up recreating the field