Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add support for decoding base64url variant. #16

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

Open
wolfgang42 wants to merge 1 commit into niklasvh:master
base: master
Choose a base branch
Loading
from wolfgang42:base64url

Conversation

Copy link

@wolfgang42 wolfgang42 commented Jul 1, 2019

This is a common style of base64 which swaps out + and / for URL/filename-safe equivalents.

Incidentally, should there be some checks for invalid characters in the decode function? I was trying to use base64-arraybuffer on some keys that used this encoding style and it was producing incorrect but plausible-looking results without any kind of error, which led to a very frustrating debugging session.

asherkin and MingweiSamuel reacted with thumbs up emoji
Copy link

Hexagon commented Dec 8, 2021
edited
Loading

I've made a more complete implementation at #31 which later bacame @hexagon/base64

wolfgang42 reacted with heart emoji

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /