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

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

Closed
lucacasonato opened this issue Jul 7, 2021 · 2 comments
Closed

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

lucacasonato opened this issue Jul 7, 2021 · 2 comments

Comments

@lucacasonato
Copy link
Member

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 #7 (comment)

@annevk
Copy link
Member

annevk commented Apr 21, 2023

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
Copy link
Collaborator

bakkot commented Feb 8, 2024

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

@bakkot bakkot closed this as completed Feb 8, 2024
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

No branches or pull requests

3 participants