Skip to content

Use constant-time base64 implementation#66

Merged
niklasf merged 1 commit intopimeys:masterfrom
niklasf:ct-base64
Feb 22, 2025
Merged

Use constant-time base64 implementation#66
niklasf merged 1 commit intopimeys:masterfrom
niklasf:ct-base64

Conversation

@niklasf
Copy link
Collaborator

@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.
@niklasf niklasf merged commit 06a0846 into pimeys:master Feb 22, 2025
11 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.

1 participant