GlideEncryption Deprecation
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2025 03:41 AM
I'm having some trouble amending the GlideEncryption (now deprecated) with one of ServiceNows alternatives.
We have a workflow that still uses GlideEncryption to create ECC Queue record to send parameters to MID Server. It still works, but we need to update it. I've followed all the alternatives supplied by ServiceNow in this KB but none of them are working.
Has anyone updated decryption script similar to the one below successfully that could share some insight?
function getCredentials() {
var objReturn = {};
var grSAPB = new GlideRecord('sys_auth_profile_basic');
if(grSAPB.get(gs.getProperty('sjp.apintegration.basic_auth_credentials'))) {
objReturn = {
"username": grSAPB.username,
"password":new GlideEncrypter().decrypt(grSAPB.getValue('password'))
};
}
return objReturn;
}
0 REPLIES 0