1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 03:22:08 +02:00
tldr/pages/common/jwt.md
Lena 7ca1069d76
pages/*: reword descriptions without using "a CLI for" etc. (#10437)
Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2023-07-16 19:23:40 +02:00

21 lines
518 B
Markdown

# jwt
> Work with JSON Web Tokens (JWTs).
> Encryption algorithms available are HS256, HS384, HS512, RS256, RS384, RS512, ES256, ES384.
> More information: <https://github.com/mike-engel/jwt-cli>.
- Decode a JWT:
`jwt decode {{jwt_string}}`
- Decode a JWT as a JSON string:
`jwt decode -j {{jwt_string}}`
- Encode a JSON string to a JWT:
`jwt encode --alg {{HS256}} --secret {{1234567890}} '{{json_string}}'`
- Encode key pair payload to JWT:
`jwt encode --alg {{HS256}} --secret {{1234567890}} -P key=value`