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

hmac: Add support to return base64 encoded HMAC. #1081

Merged
merged 1 commit into from
Jul 8, 2024
Merged

Conversation

fxb
Copy link
Contributor

@fxb fxb commented Jul 8, 2024

Keeping the now kind of obsolte binary argument and adding a new encoding argument to allow directly encoding the resulting HMAC as base64.

This is needed as some APIs require base64 encoded HMACs, which are currently not possible to create, as starlib's base64 encoding only operates on strings.

@fxb
Copy link
Contributor Author

fxb commented Jul 8, 2024

Should I check for values other than "hex", "binary" and "base64" and error out?

@rohansingh rohansingh merged commit 2b4c878 into tidbyt:main Jul 8, 2024
7 checks passed
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

Successfully merging this pull request may close these issues.

2 participants