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

Consider replacing the dependency rfc4648 in favor of the built-in methods Uint8Array.toBase64 and Uint8Array.fromBase64() #55

Open
Greenheart opened this issue Oct 29, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@Greenheart
Copy link
Owner

Greenheart commented Oct 29, 2024

This would remove the only client side JS dependency and simplify the decryption script.

See the proposal for more details and usage examples:
https://github.com/tc39/proposal-arraybuffer-base64

This was just implemented in Firefox, but we'll probably need to wait 1-2 years for sufficient browser support.

We could add a polyfill instead of using the rfc4648 library, to allow us to switch to this new API earlier.
https://github.com/zloirock/core-js?tab=readme-ov-file#uint8array-to--from-base64-and-hex

@Greenheart Greenheart added the enhancement New feature or request label Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant