\Alipay\EasySDK\Kernel\UtilAES

Summary

Methods
Properties
Constants
aesEncrypt()
aesDecrypt()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
addPKCS7Padding()
stripPKSC7Padding()
No private properties found
N/A

Methods

aesEncrypt()

aesEncrypt( $plainText,  $key) : string

AES加密

Parameters

$plainText

String 明文

$key

String 对称密钥

Throws

\Exception

Returns

string —

aesDecrypt()

aesDecrypt( $cipherText,  $key) : false|string

AES解密

Parameters

$cipherText

String 密文

$key

String 对称密钥

Throws

\Exception

Returns

false|string —

addPKCS7Padding()

addPKCS7Padding(string  $source) : string

填充算法

Parameters

string $source

Returns

string —

stripPKSC7Padding()

stripPKSC7Padding(string  $source) : string

移去填充算法

Parameters

string $source

Returns

string —