Moln opened this issue 9 years ago · 0 comments
Commit #11
Can move $padding argment to RsaOptions ?
$rsa = Zend\Crypt\PublicKey\Rsa::factory([ 'private_key' => $privateKey, 'public_key' => $publicKey, 'padding' => OPENSSL_PKCS1_OAEP_PADDING ]); $rsa->decrypt($rsa->encrypt('123456'));