\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

Encrypt data with key

Parameters

mixed $data

the data need to be encrypted

$prikey

Returns

mixed —

encrypted data

decrypt()

decrypt(mixed  $data,   $pubkey) : mixed

Decrypt data with key

Parameters

mixed $data

encrypted data

$pubkey

Returns

mixed —

data after decrypt