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

Fix AES encryption error in browsers for messages larger than 3MB #1506

Merged
merged 1 commit into from Mar 14, 2022

Conversation

larabr
Copy link
Collaborator

@larabr larabr commented Mar 14, 2022

In browsers, encryption of messages larger than 3MB (or other custom value based on config.minBytesForWebCrypto) would throw the error Error encrypting message: 'crypto.getCipher' is not a function due to a missing import statement. This wasn't caught by the linter since the module name (crypto) is the same as the global browser variable.

Issue reported by @panchiniak.

@larabr larabr requested a review from twiss March 14, 2022 15:26
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.

None yet

2 participants