tc39 / proposal-arraybuffer-base64

TC39 proposal for Uint8Array<->base64/hex
https://tc39.github.io/proposal-arraybuffer-base64/
MIT License
248 stars 8 forks source link

Add support for a mixed base64 and base64url encoding? #9

Closed lucacasonato closed 8 months ago

lucacasonato commented 3 years ago

Elsewhere, @bakkot says that apparently Node.js's Buffer.from(x, "base64"), as well as CSP, support mixing base64 and base64 URL in the same string, when decoding. That might be a variant worth supporting in the API as well.

Originally posted by @domenic in https://github.com/bakkot/proposal-arraybuffer-base64/issues/7#issuecomment-875827257

annevk commented 1 year ago

The way CSP and SRI appear to do this (in WebKit anyway) this is by trying one and then the other. That's not something we want to endorse.

bakkot commented 8 months ago

Not having any reason that anyone would ever want this, we're not planning on doing this.