Use XPath Functions in JavaScript Libraries

You can use the following XPath functions in JavaScript libraries in Oracle Integration.

  • function sha256(ascii) {
        result = xpath.ora.checksum(ascii, "sha-256");
        return result;
    }
  • function sha512(ascii) {
        result = xpath.ora.checksum(ascii, "sha-512");
        return result;
    }
  • function sha(ascii) {
        result = xpath.ora.checksum(ascii, "sha");
        return result;
    }
  • function md5(ascii) {
        result = xpath.ora.checksum(ascii, "md5");
        return result;
    }
  • function encode(input){
        result = xpath.ora.encodeData(input, "b64mime");
        return result;
    }
  • function decode(input){
        result = xpath.ora.decodeData(input, "b64mime");
        return result;
    }