Error RijndaelManaged, “Padding is invalid and cannot be removed”

前端 未结 4 757
萌比男神i
萌比男神i 2020-12-07 01:27

I have error from CryptoStream:

Padding is invalid and cannot be removed.

Code

public MemoryStream Enc         


        
4条回答
  •  情话喂你
    2020-12-07 02:16

    Please check your pass phrase - it should be same in both methods EncrypteBytes and DecrypteBytes. If both are not same, then it will generate the error.

提交回复
热议问题