openssl_decrypt
Supported Versions: PHP 5 >= 5.3.0, PHP 7, PHP 8
Decrypts data
openssl_decrypt
(
string $data
,
string $cipher_algo
,
string $passphrase
,
int $options
=
0
,
string $iv
=
""
,
?
string $tag
=
null
,
string $aad
=
""
):
string
|
false
laravel/framework
$decrypted
=
\openssl_decrypt
(
$payload
[
'value'
],
strtolower
(
$this
->
cipher
),
$this
->
key
,
0
,
$iv
,
$tag
??
''
);
if (
$decrypted
===
false
) {
throw new
DecryptException
(
'Could not decrypt the data.'
);
src/Illuminate/Encryption/Encrypter.php