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: support decrypting strings larger than 4 MiB #123

Merged
merged 1 commit into from
Sep 24, 2024

Conversation

aloisklink
Copy link
Contributor

The cloakedStringRegex regex fails on ciphertexts larger than 4 MiB. The new parseCloakedString in @47ng/[email protected] doesn't have this limitation.

See: 47ng/cloak#411
Fixes: #122

The `cloakedStringRegex` regex fails on ciphertexts larger than 4 MiB.
The new `parseCloakedString` in [`@47ng/[email protected]`][1] doesn't have
this limitation.

[1]: https://github.com/47ng/cloak/releases/tag/v1.2.0

Fixes: 47ng#122
@coveralls
Copy link

Pull Request Test Coverage Report for Build 11018928617

Details

  • 1 of 1 (100.0%) changed or added relevant line in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 79.242%

Totals Coverage Status
Change from base Build 10298732511: 0.0%
Covered Lines: 269
Relevant Lines: 320

💛 - Coveralls

Copy link
Member

@franky47 franky47 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

praise: LGTM, thanks!

@franky47 franky47 merged commit 8380200 into 47ng:next Sep 24, 2024
1 check passed
@aloisklink aloisklink deleted the fix-decryption-on-larger-strings branch September 25, 2024 06:37
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.

prisma-field-encryption fails with large strings due to RangeError: Maximum call stack size exceeded
3 participants