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
Why does not Crypt check hmac?
When decrypting an encrypted character, entering a different key will return an incorrect decryption character.
$text = 'This is a secret text'; $key = 'le password'; $encrypted = $crypt->encrypt($text, $key); $key = 'le password2'; echo $crypt->decrypt($encrypted, $key);
result:
���0�Pz�@��/x���'�t��
If hmac is checked and is not valid, an empty string must be returned.
The text was updated successfully, but these errors were encountered:
$text = ''; $key = 'le password'; $encrypted = $crypt->encrypt($text, $key); $key = 'le password2'; echo $crypt->decrypt($encrypted, $key);
Is it correct behavior if decrypt will return an empty string here?
decrypt
Sorry, something went wrong.
Sorry.
If it is not valid, it throws an exception.
Fixed in the 3.4.0 version. Feel free to open a new issue if the problem appears again. Thank you for contributing.
3.4.0
No branches or pull requests
Why does not Crypt check hmac?
When decrypting an encrypted character, entering a different key will return an incorrect decryption character.
result:
If hmac is checked and is not valid, an empty string must be returned.
The text was updated successfully, but these errors were encountered: