Zend\Crypt\PublicKey\Rsa::decrypt
Decrypt with private/public key
$data can be encoded in base64 or not. $mode sets how the input must be processed: - MODE_AUTO: Check if the $signature is encoded in base64. Not recommended for performance. - MODE_BASE64: Decode $data using base64 algorithm. - MODE_RAW: $data is not encoded.
Signature
public function decrypt(string
$data,
[AbstractKey
$key = null,
[int
$mode = self::MODE_AUTO]] )
Parameters
$data
— string$key
— Zend\Crypt\PublicKey\Rsa\AbstractKey
$mode
— int- Input encoding
Returns
- string