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
php -dmbstring.func_overload=7 test.php
<?php var_dump(strlen("\xF0\x9D\xA5\xB3"));
Guess what this produces.
Using strlen() and substr() for crypto can be dangerous, especially since you work with raw binary.
strlen()
substr()
The text was updated successfully, but these errors were encountered:
@paragonie-scott right, I should use mb_strlen() and mb_substr() for binary data. I'll fix this shortly. Thanks again for your suggestion!
Sorry, something went wrong.
@paragonie-scott I fixed in master.
👍
No branches or pull requests
php -dmbstring.func_overload=7 test.php
Guess what this produces.
Using
strlen()
andsubstr()
for crypto can be dangerous, especially since you work with raw binary.The text was updated successfully, but these errors were encountered: