← All docs

openssl_decrypt()

Decrypts data with a supported AES cipher.

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 supported AES cipher.

Parameters:

  • $data (string)
  • $cipher_algo (string)
  • $passphrase (string)
  • $options (int), default 0, optional
  • $iv (string), default '', optional
  • $tag (mixed), default null, optional
  • $aad (string), default '', optional

Returns: mixed

Availability

No examples yet — check examples/ and showcases/ for usage patterns.

Internals

For how openssl_decrypt is implemented in the compiler, see the internals page.