Error occurred while decoding OAEP padding

后端 未结 8 1335
青春惊慌失措
青春惊慌失措 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.

提交回复
热议问题