← All docs
openssl_decrypt()
Decrypts data with a cipher from the OpenSSL 3.6.4 default-provider catalog.
openssl_decrypt()
function openssl_decrypt(string $data, string $cipher_algo, string $passphrase, int $options = 0, string $iv = '', mixed $tag = null, string $aad = ''): mixed
Decrypts data with a cipher from the OpenSSL 3.6.4 default-provider catalog.
Parameters:
$data(string)$cipher_algo(string)$passphrase(string)$options(int), default0, optional$iv(string), default'', optional$tag(mixed), defaultnull, optional$aad(string), default'', optional
Returns: mixed
Availability
| Compiled (AOT) | Magician (eval) |
|---|---|
| Available | Available |
No examples yet. Check examples/ and showcases/ for usage patterns.
Internals
For how openssl_decrypt is implemented in the compiler, see the internals page.