Using JS libraries
1.
require
.
2.
$$.liveRequire
function. Only pure js libraries are supported, preferably libraries with the word browser written to support browser-side operation. Libraries containing language extensions such as C/C++ are not supported for loading and will run out of time or exceptions.TIP
Built-in Library List
Usage
SHA256 Encryption
HMAC-SHA256 Encryption
Base64 Encoding
Base64 Decoding
pm.response.setBody()
method.
AES Encryption
AES Decryption
RSA Encryption
RSA Decryption
jsrsasign
version is 10.3.0; syntax may not be compatible with other versions). This example can be run in a Node.js environment and adapted for encryption or decryption operations in Apidog:
TIP
// A correct example.
var cryptoJs = require("crypto-js");
console.log(cryptoJs.SHA256("Message"));
// A wrong example.
var SHA256 = require("crypto-js/sha256");
console.log(SHA256("Message"));
Modified atΒ 2025-06-27 04:16:44