how to decrypt the password2 (2 way encryption) field in scoped application

rudra1
Tera Expert

Hi,

       any one help me on  how to decrypt the password2 (2 way encryption) field in scoped application?

 

6 REPLIES 6

Sindhu B1
Giga Expert

Hi Rudra

Try this code in business rule.

var Encrypter = new GlideEncrypter();  

 

var encrypted = current.u_password; // current.<<your field name>>  

 

var decrypted = Encrypter.decrypt(encrypted);  

 

gs.addInfoMessage("encrypted..   " + encrypted);  

 

gs.addInfoMessage("decrypted..   " + decrypted);

 

 

Please mark it as correct or helpful

Regards ,

Sindhu

rudra1
Tera Expert

thank you for your reply..  i have tried this  but GlideEncrypter() works only in global not in scoped application.

Please refer the below link

https://community.servicenow.com/community?id=community_question&sys_id=642107e5db98dbc01dcaf3231f96...

 

 

Please mark it as correct Or Helpful

Regards,

Sindhu

kireeti1
Kilo Explorer

hi .. after generating RITM , can i know how many records creates in the BACKEND