How to create a pair private/public keys using Node.js crypto?

后端 未结 9 641
逝去的感伤
逝去的感伤 2020-12-23 01:59

I have to generate two keys (private and public) to encrypt a text with the public and let the user with the private key decrypt the text.

Is it possible with the mo

9条回答
  •  [愿得一人]
    2020-12-23 02:17

    I have not used it, but this may be useful:

    http://ox.no/posts/diffie-hellman-support-in-node-js

    Documentation is severely lacking on this (no examples that I could find).

提交回复
热议问题