KMFCryptoOperation - Scoped, Global

dheeru_1994
Tera Contributor

I have a requirement in servicenow for encryption and decryption 
in that in document i got this code

var op = new
sn_kmf_ns.KMFCryptoOperation("global.sj_cm","ASYMMETRIC_DECRYPTION")
.withAdditionalInput({
"signature": "pkg… ",
"ephemeral_key": "BDi…"
})
.withOutputFormat("KMFNONE");

var clearText = op.doOperation("afFS…");
but i do not know how to use these codes for encryption or decryption 
it is difficult to figure out this 
kindly help me 
for that 

any help will highly appreciated 

 

0 REPLIES 0