Error occurred while decoding OAEP padding
A common mistake is to try to decrypt using the public key.
A common mistake is to try to decrypt using the public key.
You don’t need to export existing parameters then re-import over top of them. That forces your machine to generate an RSA key then throw it away. So specifying a keysize to the constructor doesn’t matter (if you don’t use the key it won’t generate one… usually). The public key file is a DER encoded blob. … Read more