Postman rsa cryptography support

hello, all, my many projects need rsa cryptography algorithm in web api testing, does postman support it intrinsically?

Can you maybe share a concrete example?

hello, my current project web api test url has encryption mechanism by using rsa encryption, it has public key and private key, to generate sign parameter in url, i donโ€™t have concrete example, does postman js api support this programming function?

RSA is not natively supported in Postman.

There is a way around this by adding a 3rd party library.

Hi,

I have created an easy to use library to use crypto operations form postman scripts (newman alsoโ€ฆ) very easy, have a look here, there a little tutorial also.

Best Regards.

1 Like

really thank you! i will try it

Hi joliva,
How can i do the RSAOAEP with SHA-256 hash

const keyObj = pmlib.rs.KEYUTIL.getKey(pubkey)
const encHex = pmlib.rs.KJUR.crypto.Cipher.encrypt(fileContent, keyObj, โ€˜RSAOAEPโ€™)
const encBase64 = pmlib.rs.hextob64(encHex)
console.log(encBase64)