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

Use constant-time base64 implementation #66

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

niklasf
Copy link
Contributor

@niklasf niklasf commented Dec 19, 2024

Replaces the outdated base64 depenency. Instead of updating to the latest version, this switches to ct_codecs, which is better suited for working with cryptographic keys. Using ct_codecs instead of alternatives like base64ct, because ct_codecs is already a dependency via jwt-simple.

This also removes the reexported base64 configuration options from the API. Web Push uses URL-safe encoding without padding everywhere. If needed for custom purposes, users can encode/decode on their end, without having to use types from the exact base64 crate used in this library.

Replaces the outdated base64 depenency. Instead of updating to the
latest version, this switches to ct_codecs, which is better
suited for working with cryptographic keys. Using ct_codecs instead of
alternatives like base64ct, because ct_codecs is already a dependency
via jwt-simple.

This also removes the reexported base64 configuration options from the
API. Web Push uses URL-safe encoding without padding everywhere. If needed
for custom purposes, users can encode/decode on their end, without having to
use types from the exact base64 crate used in this library.
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.

1 participant