Toggle navigation
Hot Examples
DE
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Suchen
Home
Gaoming13
WechatPhpSdk
Utils
Prpcrypt
PHP Class Gaoming13\WechatPhpSdk\Utils\Prpcrypt
Datei anzeigen
Open project: gaoming13/wechat-php-sdk
Class Usage Examples
Public Properties
Property
Type
Description
$key
Public Methods
Method
Description
__construct
(
$k
)
decrypt
(
string
$encrypted
,
$appid
) :
string
对密文进行解密
encrypt
(
string
$text
,
$appid
) :
string
对明文进行加密
getRandomStr
( ) :
string
随机生成16位字符串
Method Details
__construct()
public
method
public
__construct
(
$k
)
decrypt()
public
method
对密文进行解密
public
decrypt
(
string
$encrypted
,
$appid
) :
string
$encrypted
string
需要解密的密文
return
string
解密得到的明文
encrypt()
public
method
对明文进行加密
public
encrypt
(
string
$text
,
$appid
) :
string
$text
string
需要加密的明文
return
string
加密后的密文
getRandomStr()
public
method
随机生成16位字符串
public
getRandomStr
( ) :
string
return
string
生成的字符串
Property Details
$key
public_oe property
public
$key