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.
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)