\Think\Crypt\DriverBase64

Base64 加密实现类

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(  $data, string  $key, integer  $expire) : string

加密字符串

Parameters

$data
string $key

加密key

integer $expire

有效期(秒)

Returns

string

decrypt()

decrypt(  $data, string  $key) : string

解密字符串

Parameters

$data
string $key

加密key

Returns

string