0.0.0 • Published 3 years ago

@agrozyme/json-web-key v0.0.0

Weekly downloads
-
License
MIT
Repository
gitlab
Last release
3 years ago

Json Web Key

Convert key format for JWK Support algorithm: ES256, ES256K, ES384, ES512 Support key format: raw, pem, jwk

oclif Version Downloads/week License

Usage

$ npm install -g @agrozyme/json-web-key
$ json-web-key COMMAND
running command...
$ json-web-key (--version)
@agrozyme/json-web-key/0.0.0 win32-x64 node-v16.14.2
$ json-web-key --help [COMMAND]
USAGE
  $ json-web-key COMMAND
...

Commands

json-web-key help [COMMAND]

Display help for json-web-key.

USAGE
  $ json-web-key help [COMMAND] [-n]

ARGUMENTS
  COMMAND  Command to show help for.

FLAGS
  -n, --nested-commands  Include all nested commands in the output.

DESCRIPTION
  Display help for json-web-key.

See code: @oclif/plugin-help

json-web-key keyPair

make keypair

USAGE
  $ json-web-key keyPair --type ES256|ES256K|ES384|ES512 [--debug]

FLAGS
  --debug          show error stack
  --type=<option>  (required)
                   <options: ES256|ES256K|ES384|ES512>

DESCRIPTION
  make keypair

See code: dist/commands/keyPair.ts

json-web-key privateKey:convert

convert raw private key to other format

USAGE
  $ json-web-key privateKey:convert --key <value> --format raw|jwk|pem --type ES256|ES256K|ES384|ES512 [--debug]

FLAGS
  --debug            show error stack
  --format=<option>  (required)
                     <options: raw|jwk|pem>
  --key=<value>      (required)
  --type=<option>    (required)
                     <options: ES256|ES256K|ES384|ES512>

DESCRIPTION
  convert raw private key to other format

See code: dist/commands/privateKey/convert.ts

json-web-key privateKey:export

export private key file to other format

USAGE
  $ json-web-key privateKey:export --fromFile <value> --toFile <value> --fromFormat raw|jwk|pem --toFormat raw|jwk|pem
    --type ES256|ES256K|ES384|ES512 [--debug]

FLAGS
  --debug                show error stack
  --fromFile=<value>     (required)
  --fromFormat=<option>  (required)
                         <options: raw|jwk|pem>
  --toFile=<value>       (required)
  --toFormat=<option>    (required)
                         <options: raw|jwk|pem>
  --type=<option>        (required)
                         <options: ES256|ES256K|ES384|ES512>

DESCRIPTION
  export private key file to other format

See code: dist/commands/privateKey/export.ts

json-web-key publicKey:convert

convert raw public key to other format

USAGE
  $ json-web-key publicKey:convert --key <value> --format raw|jwk|pem --type ES256|ES256K|ES384|ES512 [--debug]

FLAGS
  --debug            show error stack
  --format=<option>  (required)
                     <options: raw|jwk|pem>
  --key=<value>      (required)
  --type=<option>    (required)
                     <options: ES256|ES256K|ES384|ES512>

DESCRIPTION
  convert raw public key to other format

See code: dist/commands/publicKey/convert.ts

json-web-key publicKey:export

export public key file to other format

USAGE
  $ json-web-key publicKey:export --fromFile <value> --toFile <value> --fromFormat raw|jwk|pem --toFormat raw|jwk|pem
    --type ES256|ES256K|ES384|ES512 [--debug]

FLAGS
  --debug                show error stack
  --fromFile=<value>     (required)
  --fromFormat=<option>  (required)
                         <options: raw|jwk|pem>
  --toFile=<value>       (required)
  --toFormat=<option>    (required)
                         <options: raw|jwk|pem>
  --type=<option>        (required)
                         <options: ES256|ES256K|ES384|ES512>

DESCRIPTION
  export public key file to other format

See code: dist/commands/publicKey/export.ts