Clone this project and run npm install. Should work on node version v10.0 but if in doubt use v12.22.0.

encrypt

node jwt_hash_decrypt.js --secret=<secret> --string=<string_to_hash>

decrypt

node jwt_hash_decrypt.js --secret=<secret> --token=<token_to_decrypt>