Error occurred while decoding OAEP padding

后端 未结 8 1297
青春惊慌失措
青春惊慌失措 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:48

    RSA encryption may result non readable character, make sure not to cut the string due to special character indicating end of something during write/read the encryption result; e.g you must not use strlen for it will stop when encounter a '\0' in the string.

    0 讨论(0)
  • 2020-12-06 10:50

    A common mistake is to try to decrypt using the public key.

    0 讨论(0)
提交回复
热议问题