PHP » GoLang |
login |
register |
about
|
GoLang openssl_encrypt
request it (430)
GoLang replacement for PHP's openssl_encrypt
[edit | history]
openssl_encrypt(PHP 5 >= 5.3.0, PHP 7) openssl_encrypt — Encrypts data Description
string openssl_encrypt
( string
$data
, string $method
, string $key
[, int $options = 0
[, string $iv = ""
[, string &$tag = NULL
[, string $aad = ""
[, int $tag_length = 16
]]]]] )Encrypts given data with given method and key, 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+
<?php Example #2 AES Authenticated Encryption example for PHP 5.6+
<?php |
more
Recently updated
more
Most requested
more
Last requests
|