\AES128CBC

AES-128-CBC

Summary

Methods
Properties
Constants
__construct()
Encrypt()
Decrypt()
$ivlen
$key
cipher
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Constants

cipher

cipher = "AES-128-CBC"

SSL加密的算法名称

Properties

$ivlen

$ivlen : integer

初始向量的长度

Type

integer

$key

$key : string

密匙

Type

string

Methods

__construct()

__construct(string  $key) 

构建一个用于数据加密以及解密的模块

Parameters

string $key

要求字符串的长度必须为16的整数倍,并且应该为ASCII字符串

Encrypt()

Encrypt(  $message) 

Parameters

$message

Decrypt()

Decrypt(  $ciphertext) 

Parameters

$ciphertext