Skip to content

Conversation

wolfgang42
Copy link

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.

@Hexagon
Copy link

Hexagon commented Dec 8, 2021

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

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