Alternative to GlideEncrypter API

daisybora
Tera Contributor

I have an existing piece of code like the below and where the encrypted string is passed on to a workflow scratchpad. Could anyone please help with the best alternative here.

I have gone through the article (https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB1320986) and wondering if KMF is the only way or there are easier ways to this: 

 

var clearString = 'abcd';
var encr = new GlideEncrypter();
var encrString = encr.encrypt(clearString);
workflow.scratchpad.encr = encrString;

1 REPLY 1

Jeenet1
Tera Contributor

@daisybora Did you find any solutions that work?