RSA解密报错:: Decryption error

时间:2025-03-27 18:35:19

RSA解密报错:: Decryption error

RSA解密方法默认byte数组长度为128,实际上长度应该为256。
把RSA解密方法中的:

byte[] buffer = new byte[128];

修改为:

byte[] buffer = new byte[256];

即可。


喜欢本文的朋友不要忘记点一个免费的赞哦,你的赞将是我最大的动力。