static string createToken(
)
|
|
创建token令牌串
创建token令牌串,用于避免表单重复提交等. 使用当前的sessionID以及当前时间戳,生成唯一一串令牌串,并返回.
API Tags:
Deprecated: | |
Access: | public |
static string decrypt(
string
$str, string
$key, [
$iv = '']
)
|
|
解密字符串
Parameters:
string |
$str: |
解密的字符串 |
string |
$key: |
密钥 |
|
$iv: |
|
API Tags:
Return: | 解密后的结果 |
Access: | public |
static string encrypt(
string
$str, string
$key, [
$iv = '']
)
|
|
字符串加密
Parameters:
string |
$str: |
需要加密的字符串 |
string |
$key: |
密钥 |
|
$iv: |
|
API Tags:
Return: | 加密后的结果 |
Access: | public |
static array escapeArrayHTML(
array
$array
)
|
|
转义字符串
Parameters:
API Tags:
static string escapeHTML(
string
$str
)
|
|
转义输出字符串
Parameters:
API Tags:
static string escapePath(
$filePath, [boolean
$ifCheck = false], string
$fileName
)
|
|
路径检查转义
Parameters:
string |
$fileName: |
被检查的路径 |
boolean |
$ifCheck: |
是否需要检查文件名,默认为false |
|
$filePath: |
|
API Tags:
static string generateGUID(
)
|
|
获取唯一标识符串,标识符串的长度为16个字节,128位.
根据当前时间与sessionID,混合生成一个唯一的串.
API Tags:
Return: | GUID串,16个字节 |
Access: | public |