mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-01 06:15:22 +02:00
Create jwt.md (#8811)
This commit is contained in:
parent
fe8e1372bf
commit
ba24cdd12c
1 changed files with 21 additions and 0 deletions
21
pages.pt_BR/common/jwt.md
Normal file
21
pages.pt_BR/common/jwt.md
Normal file
|
@ -0,0 +1,21 @@
|
|||
# jwt
|
||||
|
||||
> Uma ferramenta de linha de comando (command-line tool) para trabalhar com JSON Web Tokens (JWTs).
|
||||
> Algoritmos de encriptação disponíveis são HS256, HS384, HS512, RS256, RS384, RS512, ES256, ES384.
|
||||
> Mais informações: <https://github.com/mike-engel/jwt-cli>.
|
||||
|
||||
- Decodifica um JWT:
|
||||
|
||||
`jwt decode {{jwt_string}}`
|
||||
|
||||
- Decodifica um JWT em uma JSON string:
|
||||
|
||||
`jwt decode -j {{jwt_string}}`
|
||||
|
||||
- Codifica uma JSON string em um JWT:
|
||||
|
||||
`jwt encode --alg {{HS256}} --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`
|
Loading…
Add table
Reference in a new issue