zendframework/zend-crypt

Can move $padding argment to RsaOptions ?

Moln opened this issue · 0 comments

Moln commented

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'));