Encrytion and Decryption of String in OIC
SummaryIs there any function to encrypt or ddecrypt string in OIC?
Has anyone tried encrypting and decryption of a string in OIC through custom JS. Below is the code I have been trying but receiving an error : The XPath expression failed to execute; the reason was: oracle.fabric.common.xml.xpath.XPathFunctionException: ReferenceError: "CryptoJS" is not defined. (js/Function/CryptFucntion.js#3)
var cipher = CryptoJS.AES.encrypt(ipstring,secret);
var result = cipher.toString();
var decipher = CryptoJS.AES.decrypt(ipstring,secret);
var result = decipher.toString(CryptoJS.enc.Utf8);