https://github.com/clarketm/jwt-token-generator
Generate JWT Token using Unix command line tools
https://github.com/clarketm/jwt-token-generator
bash jwt jwt-token openssl token-generation
Last synced: about 1 month ago
JSON representation
Generate JWT Token using Unix command line tools
- Host: GitHub
- URL: https://github.com/clarketm/jwt-token-generator
- Owner: clarketm
- Created: 2017-04-24T23:11:08.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-12-01T23:09:44.000Z (over 7 years ago)
- Last Synced: 2025-03-28T00:44:08.583Z (about 2 months ago)
- Topics: bash, jwt, jwt-token, openssl, token-generation
- Language: Shell
- Homepage:
- Size: 185 KB
- Stars: 12
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# jwt-token-generator
Generate JWT Token using Unix command line tools### Installation
#### Source
```bash
$ git clone "https://github.com/clarketm/jwt-token-generator.git"
$ cd jwt-token-generator && sudo sh install.sh
```### Usage
```bash
#########################################
#### jwt ####
#########################################$ jwt '{"alg":"HS256","typ":"JWT"}' '{"aud":"mobile","exp":1470646848,"iss":"token.service","sub":"travis"}' 'secreto'
```### Output
```bash
copied to clipboard!JWT token:
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJtb2JpbGUiLCJleHAiOjE0NzA2NDY4NDgsImlzcyI6InRva2VuLnNlcnZpY2UiLCJzdWIiOiJ0cmF2aXMifQ.CaXRXQO2bW/i+69zExHEG0r3riHG82jl8bv73BqK2qs
```