RSA加密:javax.crypto.IllegalBlockSizeException: Data must not be longer than 117 bytes
Posted 柳鲲鹏
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了RSA加密:javax.crypto.IllegalBlockSizeException: Data must not be longer than 117 bytes相关的知识,希望对你有一定的参考价值。
具体错误:
javax.crypto.IllegalBlockSizeException: Data must not be longer than 117 bytes
at com.sun.crypto.provider.RSACipher.doFinal(RSACipher.java:347)
at com.sun.crypto.provider.RSACipher.engineDoFinal(RSACipher.java:404)
at javax.crypto.Cipher.doFinal(Cipher.java:2168)
at javax.crypto.SealedObject.<init>(SealedObject.java:172)
什么时代了,咱就不能豪放一些?怎么办?只能分段处理了。
以上是关于RSA加密:javax.crypto.IllegalBlockSizeException: Data must not be longer than 117 bytes的主要内容,如果未能解决你的问题,请参考以下文章