PKCS7Encoder
in
PKCS7算法 - 加解密 Class PKCS7Encoder
Table of Contents
$blockSize | ||
---|---|---|
encode() | 对需要加密的明文进行填充补位 | string |
decode() | 对解密后的明文进行补位删除 | string |
Properties
$blockSize
public
static mixed
$blockSize
= 32
Methods
encode()
对需要加密的明文进行填充补位
public
encode(
$text :
string
)
: string
Parameters
- $text : string
需要进行填充补位操作的明文
Return values
string —补齐明文字符串
decode()
对解密后的明文进行补位删除
public
decode(
$text :
string
)
: string
Parameters
- $text : string
解密后的明文
Return values
string —删除填充补位后的明文