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
        $decrypted \openssl_decrypt(

            
$payload['value'], strtolower($this->cipher), $this->key0$iv$tag ?? ''

        
);



        if (
$decrypted === false) {

            throw new 
DecryptException('Could not decrypt the data.');