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

PHP version incompatibility with openssl_decrypt #24

Open
nabilanam opened this issue Dec 4, 2023 · 0 comments
Open

PHP version incompatibility with openssl_decrypt #24

nabilanam opened this issue Dec 4, 2023 · 0 comments

Comments

@nabilanam
Copy link

nabilanam commented Dec 4, 2023

The openssl_decrypt tag parameter was added in PHP 7.1.
Because of that PHP 7.0 gives error saying it accepts 5 parameters.
I think composer.json PHP versions need to be updated.

$decryptedText = openssl_decrypt(
$ciphertext,
self::GCM_CIPHER,
$key,
OPENSSL_RAW_DATA,
$iv,
$tag
);

Documentation: https://www.php.net/manual/en/function.openssl-decrypt.php#refsect1-function.openssl-decrypt-parameters

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

No branches or pull requests

1 participant