\Think\Crypt\DriverXxtea

Xxtea 加密实现类

Summary

Methods
Properties
Constants
encrypt()
decrypt()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
long2str()
str2long()
int32()
No private properties found
N/A

Methods

encrypt()

encrypt(string  $str, string  $key, integer  $expire) : string

加密字符串

Parameters

string $str

字符串

string $key

加密key

integer $expire

有效期(秒)

Returns

string

decrypt()

decrypt(string  $str, string  $key) : string

解密字符串

Parameters

string $str

字符串

string $key

加密key

Returns

string

long2str()

long2str(  $v,   $w) 

Parameters

$v
$w

str2long()

str2long(  $s,   $w) 

Parameters

$s
$w

int32()

int32(  $n) 

Parameters

$n