cipher example

Example for encrypt and decrypt a message using crypto on Node.js. Written in typescript.

Initialization vector is kept constant for demonstration purpose.

Setup

# install dependencies
npm i

Encrypt and decrypt a message

npm start

Then follow instruction in the command prompt.