mirror of
https://github.com/tldr-pages/tldr.git
synced 2026-09-01 15:51:29 +08:00
jwt: add short/long options (#20943)
This commit is contained in:
@@ -10,12 +10,12 @@
|
||||
|
||||
- JWT를 JSON 문자열로 디코드:
|
||||
|
||||
`jwt decode -j {{jwt_문자열}}`
|
||||
`jwt decode {{[-j|--json]}} {{jwt_문자열}}`
|
||||
|
||||
- JSON 문자열을 JWT로 인코드:
|
||||
|
||||
`jwt encode --alg {{HS256}} --secret {{1234567890}} '{{json_문자열}}'`
|
||||
`jwt encode {{[-A|--alg]}} {{HS256}} {{[-S|--secret]}} {{1234567890}} '{{json_문자열}}'`
|
||||
|
||||
- 키-값 쌍 페이로드를 JWT로 인코드:
|
||||
|
||||
`jwt encode --alg {{HS256}} --secret {{1234567890}} -P {{키=값}}`
|
||||
`jwt encode {{[-A|--alg]}} {{HS256}} {{[-S|--secret]}} {{1234567890}} {{[-P|--payload]}} {{키=값}}`
|
||||
|
||||
@@ -10,12 +10,12 @@
|
||||
|
||||
- Decodifica um JWT em uma JSON string:
|
||||
|
||||
`jwt decode -j {{jwt_string}}`
|
||||
`jwt decode {{[-j|--json]}} {{jwt_string}}`
|
||||
|
||||
- Codifica uma JSON string em um JWT:
|
||||
|
||||
`jwt encode --alg {{HS256}} --secret {{1234567890}} '{{json_string}}'`
|
||||
`jwt encode {{[-A|--alg]}} {{HS256}} {{[-S|--secret]}} {{1234567890}} '{{json_string}}'`
|
||||
|
||||
- Codifica dados (payload) de um par de chaves (key pair) em um JWT:
|
||||
|
||||
`jwt encode --alg {{HS256}} --secret {{1234567890}} -P {{chave=valor}}`
|
||||
`jwt encode {{[-A|--alg]}} {{HS256}} {{[-S|--secret]}} {{1234567890}} {{[-P|--payload]}} {{chave=valor}}`
|
||||
|
||||
@@ -10,12 +10,12 @@
|
||||
|
||||
- 将 JWT 解码为 JSON 字符串:
|
||||
|
||||
`jwt decode -j {{jwt字符串}}`
|
||||
`jwt decode {{[-j|--json]}} {{jwt字符串}}`
|
||||
|
||||
- 将 JSON 字符串编码为 JWT:
|
||||
|
||||
`jwt encode --alg {{HS256}} --secret {{1234567890}} '{{json字符串}}'`
|
||||
`jwt encode {{[-A|--alg]}} {{HS256}} {{[-S|--secret]}} {{1234567890}} '{{json字符串}}'`
|
||||
|
||||
- 将键值对载荷编码为 JWT:
|
||||
|
||||
`jwt encode --alg {{HS256}} --secret {{1234567890}} -P {{键=值}}`
|
||||
`jwt encode {{[-A|--alg]}} {{HS256}} {{[-S|--secret]}} {{1234567890}} {{[-P|--payload]}} {{键=值}}`
|
||||
|
||||
Reference in New Issue
Block a user