RSA: Implementing Asymmetric Key Cryptography in Node.js
Welcome to @rafaelqg! In this guide, we will explore how to work with RSA, an asymmetric key algorithm, using the Node.js programming language.

Rafael Queiroz Gonçalves
1.7K views • Dec 25, 2022

About this video
Welcome to @rafaelqg !
Here we are going to take a understand how to work with RSA - an asymmetric key algorithm - using node.js programming language.
Though a simple example we are going to build the whole workflow, from the creation of a keypair (or reutilizing it) to encryption of messages using the public key, and then to decryption using it private key.
Take the presented code here:
https://github.com/rafaelqg/code/blob/main/node_rsa.js
Do you want to support this channel? Just subscribe.
References:
https://www.npmjs.com/package/node-rsa
https://stackoverflow.com/questions/63758488/node-rsa-dont-need-to-import-public-key
https://stackoverflow.com/questions/805107/creating-multiline-strings-in-javascript
0:00 - Intro
1:01 - Generating key pair
05:51 - Creating RSA Object using existing keys
8:58 - Encrypt a message
13:45 - What is next
Here we are going to take a understand how to work with RSA - an asymmetric key algorithm - using node.js programming language.
Though a simple example we are going to build the whole workflow, from the creation of a keypair (or reutilizing it) to encryption of messages using the public key, and then to decryption using it private key.
Take the presented code here:
https://github.com/rafaelqg/code/blob/main/node_rsa.js
Do you want to support this channel? Just subscribe.
References:
https://www.npmjs.com/package/node-rsa
https://stackoverflow.com/questions/63758488/node-rsa-dont-need-to-import-public-key
https://stackoverflow.com/questions/805107/creating-multiline-strings-in-javascript
0:00 - Intro
1:01 - Generating key pair
05:51 - Creating RSA Object using existing keys
8:58 - Encrypt a message
13:45 - What is next
Tags and Topics
Browse our collection to discover more content in these categories.
Video Information
Views
1.7K
Likes
35
Duration
17:11
Published
Dec 25, 2022
User Reviews
4.5
(1)