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

I heard that patch2 (possibly) will have a new element API for password2 fields that would allow you to get the decrypted value as long as the table.field is in the same scope as the script.


So if you are storing the creds in your own table in the same scope as the script, this should solve your problem.


Watch for API docs to be updated with each patch release.


pavan_poul
Kilo Expert

Hi Alexey,



GlideEncrypter is not supported in Scoped APP.



Please refer for Package new GlideEncrypter() in Global Scope


Decrypting a value to set as password not working



Thanks,


Pavan


Pavan, did I miss something? You said that GlideEncrypter was not supported and referred me to a thread discussing how to use it.


Hi Alexey,



The link which i have shared, it is referring to how to use "GlideEncrypter" just for your information.


It is working fine in global scope but not in private scoped app.(edited the last comment)



Thanks,


Pavan


But we still can hope to get password2 decryption support in Fuji patch2?