Should be able to use utils.publicEncrypt() to encrypt and set result into encryptedPayload environment variable
Actual Behaviour
Got the error:
TypeError: o.start is not a function
at Object.a.encode_rsa_oaep (eval at <anonymous> (eval at exec (evalmachine.<anonymous>:66:1815891)), <anonymous>:1:214821)
at Object.encode (eval at <anonymous> (eval at exec (evalmachine.<anonymous>:66:1815891)), <anonymous>:1:110005)
at Object.encrypt (eval at <anonymous> (eval at exec (evalmachine.<anonymous>:66:1815891)), <anonymous>:1:110208)
at Object.publicEncrypt (eval at exec (evalmachine.<anonymous>:66:1815891), <anonymous>:92:44)
...
Description
I'm trying to import the forge library into Postman from CDN for Request encryption: https://unpkg.com/node-forge@1.3.1/dist/forge.all.min.js
Collection Pre-Request script:
Request's Pre-Request script:
Expected Behaviour
utils.publicEncrypt()
to encrypt and set result intoencryptedPayload
environment variableActual Behaviour
Refs