This is a simple example of how to use RSA and AES for hybrid encryption.
Navigate into each directory (api
and web
) and install the dependencies.
npm install
In the api
directory:
- Run
npm run build
in theapi
directory to build the project. - Run
node dist/genkey
in theapi
directory to generate the keys. - run
node dist/server
in theapi
directory to start the server.
In the web
directory
- Run
npm run dev
in theweb
directory to start the web app. - Open
http://localhost:5173/
in your browser.