\ThinkCrypt

加密解密类

Summary

Methods
Properties
Constants
init()
encrypt()
decrypt()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$handler
N/A

Properties

$handler

$handler : 

Type

Methods

init()

init(  $type = '') 

Parameters

$type

encrypt()

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

加密字符串

Parameters

$data
string $key

加密key

integer $expire

有效期(秒) 0 为永久有效

Returns

string

decrypt()

decrypt(  $data, string  $key) : string

解密字符串

Parameters

$data
string $key

加密key

Returns

string