Skip to content

PHP version incompatibility with openssl_decrypt #24

@nabilanam

Description

@nabilanam

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions