RSA Encryption Javascript

前端 未结 2 1067
清歌不尽
清歌不尽 2020-12-09 10:38

can anyone please help me with this, i have been instructed to write an application that takes some DATA then Encrypts it with a RSA Public Key and apparently needs to be RS

相关标签:
2条回答
  • 2020-12-09 11:17

    You may be interested in trying out forge (it does RSA and more). There are lots of examples on the README:

    https://github.com/digitalbazaar/forge

    0 讨论(0)
  • 2020-12-09 11:23

    Never mind found the answer myself!

    RSA Encryption standard uses PKCS #1

    Best library to use is pidCrypt, nothing else worked for me!

    https://sourceforge.net/projects/pidcrypt/

    the idiots on the other end failed to let me know that that RSA Public Key was meant to be base64 decoded too before encrypting the DATA before sending.

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