Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide option to allow --secret argument be interpreted as base-64 encoded bytes #143

Closed
ceharris opened this issue Sep 16, 2021 · 1 comment

Comments

@ceharris
Copy link
Contributor

Summary

To simplify use in scripted applications, it would be helpful if there was an option to interpret the --secret argument as a string containing base-64 encoded bytes. Perhaps an additional --base64 or -B option could be used to specify this behavior.

The same outcome can be achieved by writing the bytes of the key to a file and using --secret @filename, but directly supporting base-64 would avoid the need to write the key to a file.

Example

jwt --base64 --secret "CFP7qWsQP/oHNj+i+mxpEf/iYzmlweFHwonE4nlUCtA="
@ceharris
Copy link
Contributor Author

See PR #144

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant