How to use/replace GlideEncrypter for scoped app?

aklimenko
Mega Expert

We use GlideEncrypter in these cases. Is it supported in scoped app or how can we rewrite it?

1. encrypter.reencryptForAutomation() to encrypt pass

2. new GlideEncrypter().decrypt(creds.password); to decrypt

22 REPLIES 22

We raised this as a problem,once we got the update will come back to you.


pavan_poul
Kilo Expert

Hi Alexey,



PRB625222: api additions for scoped applications


gs.base64Encode


gs.base64Decode


This api will be in fuji next release.



Thanks,


Pavan


What is the API replacements for GlideEncrypter for dealing with password2 fields?   base64encode/decode is not the issue.


matthallbomgar
Kilo Explorer

This doesn't seem to have been addressed in patch 2 or 3.



We really need this functionality back (as it was there in previous versions and is now just gone).



Any updates on this from the ServiceNow team?



Thanks!


saurabh_khetan
ServiceNow Employee
ServiceNow Employee

Hi,



From Fuji Patch2 and above platform is supporting decrypting value within scoped application. Please use the below to get your password field decrypted value. Please remember that this is allowed only when the record is within the scope of your application


gr.<element>.getDecryptedValue()



Saurabh