NodeJS and browser RSA / AES encryption Examples

Description

It's example of exchanging encrypted messages between server and client using simple Nodejs express framework and websocket library socket.io infrastructure for best visualisation. Client encryption side is written with browser javascript Web CryptoApi. Server side is written with Nodejs crypto and Nodejs node-rsa

READ DETAILED INFO IN ARTICLE

Requirements

nodejs 6 and >

Run with docker

docker-compose up

Generate keys

node generate

Then overwrite textarea key values in static/index.html

Run

node start

starting web server with websockets on 3000 port