2.0.3 • Published 8 months ago
jose-cli v2.0.3
jose CLI
CLI tools for jose library
Description
Generating secret key (symmetric) and pair keys (asymmetric) easily for the jose library. You can actually create it manually/automatically through the documentation published by the creator.
Motivation
I struggled when trying to generate a new key using the jose library and waited for someone to provide the key generator I needed. Eventually, I had to create it myself, and it became my contribution as a developer to help others by making it easier for them.
Installation
npm install jose-cli -g
Generate secret key
Command : generate:secret
/ secret
jose secret
Generate & save secret key
jose secret --save
Generate with custom file name
jose secret --save MySecret
Help command
jose secret -h
Generate key pair
Command : generate:keypair
/ keypair
jose keypair
Generate key pair + JWK
jose keypair --jwk
Generate key pair + JWK & export as file
jose keypair --jwk --save
Generate with custom file name
jose keypair --jwk MyJWK --save MyKey
Help command
jose keypair -h