openssl_encrypt
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
-
data
-
The data.
-
method
登录查看完整内容