\PhalApi_Crypt_RSA_Pub2Pri

PhalApi_Crypt_RSA_Pub2Pri 原始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

Encrypt data with key

Parameters

mixed $data

the data need to be encrypted

$pubkey

Returns

mixed —

encrypted data

decrypt()

decrypt(mixed  $data,   $prikey) : mixed

Decrypt data with key

Parameters

mixed $data

encrypted data

$prikey

Returns

mixed —

data after decrypt