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

Change urlSafe to be RFC4648 compliant #29

Merged
merged 1 commit into from
Jan 4, 2022
Merged

Change urlSafe to be RFC4648 compliant #29

merged 1 commit into from
Jan 4, 2022

Conversation

michaelrommel
Copy link
Contributor

@michaelrommel michaelrommel commented Jan 3, 2022

This encodes now + to - and / to _ as stated in the RFC.
Sadly now one more replace() call had to be added which
will impact the performance of the urlSafe benchmarks.

Closes #28

This encodes now + to - and / to _ as stated in the RFC.
Sadly now one more replace() call had to be added which
will impact the performance of the urlSafe benchmarks.
@mcollina mcollina merged commit fa1ffea into mcollina:master Jan 4, 2022
@jasnell
Copy link

jasnell commented Jan 11, 2022

Just as a side note. Newer versions of node.js (14.8+) support base64url as an encoding option so eventually you should be able to use that here! Once 12.x drops off long term support in April, all supported versions of node.js will have it.

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.

urlSafe swaps +- and /_ encoding as per RFC 4648
3 participants