\Fastknife\UtilsAesUtils

Class AesUtils

Summary

Methods
Properties
Constants
encrypt()
decrypt()
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( $str,  $secretKey) : string

Parameters

$str
$secretKey

string 只有长度等于16位才能与前端CryptoJS加密一致

Returns

string —

decrypt()

decrypt( $str,  $secretKey) : string

解密

Parameters

$str
$secretKey

string 只有长度等于16位才能与前端CryptoJS加密一致

Returns

string —