Sign inSign up

orrc/jwt-generator

By orrc

•Updated over 6 years ago

A simple command-line utility to encode JSON Web Tokens (JWT).

Image
0

3.0K

orrc/jwt-generator repository overview

From https://github.com/orrc/jwt-generator-docker⁠:

⁠Usage

The Docker container takes two parameters:

  • the secret used for signing the token
  • the JSON payload

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.

⁠Docker images

The latest tag is published automatically by a GitHub workflow⁠.

⁠Credits

This is just a convenient wrapper around a handy Bash script⁠ created by @williamhaley⁠, including some shell magic⁠ by Filipe Fortes.

Tag summary

Content type

Image

Digest

Size

6.8 MB

Last updated

over 6 years ago

docker pull orrc/jwt-generator