\PhalApi\Crypt\RSAPub2PriCrypt

Pub2PriCrypt 原始RSA加密

RSA - 公钥加密,私钥解密

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(mixed  $data,   $pubkey) : mixed

对称加密

Parameters

mixed $data

等加密的数据

$pubkey

Returns

mixed —

加密后的数据

decrypt()

decrypt(mixed  $data,   $prikey) : mixed

对称解密

Parameters

mixed $data

对称加密后的内容

$prikey

Returns

mixed —

解密后的数据