A simple command-line utility to encode JSON Web Tokens (JWT).
3.0K
From https://github.com/orrc/jwt-generator-docker:
The Docker container takes two parameters:
The JSON payload can be provided as an argument:
docker run --rm orrc/jwt-generator my-shared-secret '{"foo": "bar", "num": 1234}'
Or it can be piped in:
echo '{"foo": "bar", "num": 1234}' | docker run --rm -i orrc/jwt-generator my-shared-secret
The JWT is printed to stdout, followed by a newline.
The latest tag is published automatically by a GitHub workflow.
This is just a convenient wrapper around a handy Bash script created by @williamhaley, including some shell magic by Filipe Fortes.
Content type
Image
Digest
Size
6.8 MB
Last updated
over 6 years ago
docker pull orrc/jwt-generator