\PhalApi_Crypt_RSA_Pri2Pub

PhalApi_Crypt_RSA_Pri2Pub 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,   $prikey) : mixed

对称加密

Parameters

mixed $data

等加密的数据

$prikey

Returns

mixed —

加密后的数据

decrypt()

decrypt(mixed  $data,   $pubkey) : mixed

对称解密

Parameters

mixed $data

对称加密后的内容

$pubkey

Returns

mixed —

解密后的数据