base64-arraybuffer icon indicating copy to clipboard operation
base64-arraybuffer copied to clipboard

Add support for decoding base64url variant.

Open wolfgang42 opened this issue 5 years ago • 1 comments

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.

wolfgang42 avatar Jul 01 '19 20:07 wolfgang42

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

Hexagon avatar Dec 08 '21 11:12 Hexagon