This repository contains examples of javascript functions to encrypt and decrypt data using jwt.
Clone this repository and run:
npm i
Set the secret key to be used by hash algorithm:
SECRET_KEY='test'
And run the script:
node index.js
For more details, view index.js
file.