node-rsa and openssl compatibility

前端 未结 1 1276
无人及你
无人及你 2021-01-19 03:51

I have a set of public/private keys, that works flawless when encrypting/decrypting some data using only one of the 2 ways for both encryption and decryption.

I stil

相关标签:
1条回答
  • 2021-01-19 03:55

    Just add -decrypt argument for openssl

    node test.js | openssl base64 -d -A | openssl rsautl -decrypt -oaep -inkey id_rsa
    

    works pretty nice for me.

    0 讨论(0)
提交回复
热议问题