npm install jose-cli> CLI tools for jose library
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.
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.
``bash`
npm install jose-cli -g
Command : generate:secret / secret
`bash`
jose secret
Generate & save secret key
`bash`
jose secret --save
Generate with custom file name
`bash`
jose secret --save MySecret
Help command
`bash`
jose secret -h
> Asymmetric Key Pair Generation
Command : generate:keypair / keypair
`bash`
jose keypair
Generate key pair + JWK
`bash`
jose keypair --jwk
Generate key pair + JWK & export as file
`bash`
jose keypair --jwk --save
Generate with custom file name
`bash`
jose keypair --jwk MyJWK --save MyKey
Help command
`bash``
jose keypair -h