|
openssl_encryptEncrypts data Description
stringfalse openssl_encrypt(
#[\SensitiveParameter]string $data,string $cipher_algo,#[\SensitiveParameter]string $passphrase,int $options = 0,string $iv = "",string &$tag = null,string $aad = "",int $tag_length = 16) Encrypts given data with given method and passphrase, returns a raw or base64 encoded string Parameters
Return Values
Returns the encrypted string on success or Errors/Exceptions
Emits an
Emits an Changelog
Examples
Example #1 AES Authenticated Encryption in GCM mode example for PHP 7.1+ Example #2 AES Authenticated Encryption example prior to PHP 7.1 See Also
|