From 83aef83efa2b5aafb4d680ed178d412de1af3c8d Mon Sep 17 00:00:00 2001 From: Sakthivel Balasubramaniam <8691700+ImShakthi@users.noreply.github.com> Date: Wed, 9 Oct 2019 21:29:16 +0530 Subject: [PATCH] jwt: add page (#3350) --- pages/common/jwt.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 pages/common/jwt.md diff --git a/pages/common/jwt.md b/pages/common/jwt.md new file mode 100644 index 0000000000..281061ff34 --- /dev/null +++ b/pages/common/jwt.md @@ -0,0 +1,21 @@ +# jwt + +> A command line tool to work with JSON Web Tokens (JWTs). +> Encryption algorithms available are HS256,HS384, HS512, RS256, RS384, RS512, ES256, ES384. +> For more information: . + +- 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`