\EasyWeChat\Kernel\SupportAES

Class AES.

Summary

Methods
Properties
Constants
encrypt()
decrypt()
getMode()
validateKey()
validateIv()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

encrypt()

encrypt(string  $text, string  $key, string  $iv, integer  $option = OPENSSL_RAW_DATA) : string

Parameters

string $text
string $key
string $iv
integer $option

Returns

string

decrypt()

decrypt(string  $cipherText, string  $key, string  $iv, integer  $option = OPENSSL_RAW_DATA, string|null  $method = null) : string

Parameters

string $cipherText
string $key
string $iv
integer $option
string|null $method

Returns

string

getMode()

getMode(string  $key) : string

Parameters

string $key

Returns

string

validateKey()

validateKey(string  $key) 

Parameters

string $key

validateIv()

validateIv(string  $iv) 

Parameters

string $iv

Throws

\InvalidArgumentException