Skip to content

An example of how to use RSA and AES for hybrid encryption between the server (NodeJS) and browser (ReactJS)

Notifications You must be signed in to change notification settings

andrewhouser/crypto-hybrid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Hybrid Crypto Example

Using RSA and AES with Node.js and React

This is a simple example of how to use RSA and AES for hybrid encryption.

Install dependencies

Navigate into each directory (api and web) and install the dependencies.

npm install

Running the example

In the api directory:

  1. Run npm run build in the api directory to build the project.
  2. Run node dist/genkey in the api directory to generate the keys.
  3. run node dist/server in the api directory to start the server.

In the web directory

  1. Run npm run dev in the web directory to start the web app.
  2. Open http://localhost:5173/ in your browser.

About

An example of how to use RSA and AES for hybrid encryption between the server (NodeJS) and browser (ReactJS)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published