Error occurred while decoding OAEP padding

后端 未结 8 1337
青春惊慌失措
青春惊慌失措 2020-12-06 09:45

While decrypting text using RSACryptoServiceProvider.Decrypt, I am getting the error:

Error occurred while decoding OAEP padding.

8条回答
  •  时光说笑
    2020-12-06 10:25

    This error normally indicates you are using a public key to decrypt, while you should be using a private key for decryption. Give it a try.

提交回复
热议问题