See
Last active
May 29, 2020 09:26
-
-
Save coolaj86/f6f36efce2821dfb046d to your computer and use it in GitHub Desktop.
Example of Asymmetric Encryption in Node.js using RSA key and pub (PEM format)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Moved to https://coolaj86.com/articles/asymmetric-public--private-key-encryption-in-node-js/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I've built a library that expose pretty simple techniques to do exactly this:
https://www.npmjs.com/package/quick-encrypt
Full Example: