(PHP 5 >= 5.3.0, PHP 7)
openssl_decrypt — ��������
$data
, string $method
, string $key
[, int $options = 0
[, string $iv = ""
[, string $tag = ""
[, string $aad = ""
]]]] ) : string����ԭʼ��base64������ַ�������ʹ�ø����ķ�������Կ������н��ܡ�
data�������ܵ����ġ�
method�����㷨��ʹ��openssl_get_cipher_methods()������ȡ���õļ����㷨�б�
key��Կ��
options
options can be one of
OPENSSL_RAW_DATA,
OPENSSL_ZERO_PADDING.
iv�ǿյij�ʼ��������
tag
AEAD����ģʽ�е������֤��ǩ�� ����Ǵ���ģ���֤ʧ�ܣ���������FALSE.
aad�������֤���ݡ�
The decrypted string on success ������ʧ��ʱ���� FALSE.
���ͨ��method�������ݵ���һ��δ֪�ļ����㷨�������׳�һ�� E_WARNING �ȼ��Ĵ���
���ͨ��iv�������ݵ���һ����ֵ�������׳�һ�� E_WARNING �ȼ��Ĵ���
| �汾 | ˵�� |
|---|---|
| 5.3.3 |
��� iv ������
|
| 5.4.0 |
�� raw_output ������ options��
|
| 7.1.0 | ����� tag �� aad ������ |