ALIAS

oenc()

ShortPHP reference for openssl_encrypt().

Signature

openssl_encrypt(string $data, string $cipher_algo, string $passphrase, int $options = 0, string $iv = "", ?string &$tag = null, string $aad = "", int $tag_length = 16): string|false

Example

oenc(...);

PHP equivalent

openssl_encrypt() is the canonical PHP function. ShortPHP provides oenc() as the convenience alias.

Extension: openssl

Official PHP manual ↗

Reference navigation

Previous: odigest()

Next: ornd()

Back to reference