We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Does anyone have any suggestions how to handle really big strings? (mysql dumps is my use case)
line 323 of ParagonIE\Halite\Symmetric\Crypto calls (string) ParagonIE\ConstantTime\Base64UrlSafe::encode(message)
The output is truncated to 65534 characters, despite the message being considerably longer.
Do I need to use a different encoder? Any recommendations?
The text was updated successfully, but these errors were encountered:
This isn't a limitation of Halite. This is a limitation of MySQL. Change your column type to a higher size (e.g. MEDIUMTEXT) to allow longer messages.
Sorry, something went wrong.
I thought the same at first, but I can confirm i'm using LONGTEXT, and that it is the line referenced above that does the truncation.
I split the dumps into segments which works fine as a solution. I was just wondering what was going on.
What version of Halite are you using? What OS? What version of the OS? What version of PHP? Which extensions are enabled?
Because, as far as I can tell, this isn't a bug in our software.
Both unit tests are passing for me.
If you enable strict mode on MySQL, do you get errors when you try to save data to your database?
No branches or pull requests
Does anyone have any suggestions how to handle really big strings? (mysql dumps is my use case)
line 323 of ParagonIE\Halite\Symmetric\Crypto calls
(string) ParagonIE\ConstantTime\Base64UrlSafe::encode(message)
The output is truncated to 65534 characters, despite the message being considerably longer.
Do I need to use a different encoder? Any recommendations?
The text was updated successfully, but these errors were encountered: