javax.crypto.IllegalBlockSizeException: Data must not be longer than 245 bytes

Stack Overflow | tmf1234 | 3 months ago
  1. 0

    Java: AES key encrypted with RSA is too long to be decrypted

    Stack Overflow | 3 months ago | tmf1234
    javax.crypto.IllegalBlockSizeException: Data must not be longer than 245 bytes
  2. 0

    getting javax.crypto.IllegalBlockSizeException: exception while encrypting the encrypted data

    Stack Overflow | 2 years ago
    javax.crypto.IllegalBlockSizeException: Data must not be longer than 245 bytes
  3. 0

    3DES key exchange with RSA in Java

    Stack Overflow | 2 years ago | Vítor Antero
    javax.crypto.IllegalBlockSizeException: Data must not be longer than 245 bytes
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Cannot decrypt key

    GitHub | 1 year ago | yamen23ali
    java.lang.IllegalStateException: Cannot decrypt
  6. 0

    Dual Signature - Information Security

    Stack Overflow | 7 months ago | satkunam rajeenthini
    javax.crypto.IllegalBlockSizeException: Data must not be longer than 256 bytes

  1. iferca 2 times, last 1 month ago
4 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. javax.crypto.IllegalBlockSizeException

    Data must not be longer than 245 bytes

    at com.sun.crypto.provider.RSACipher.doFinal()
  2. com.sun.crypto
    RSACipher.engineDoFinal
    1. com.sun.crypto.provider.RSACipher.doFinal(RSACipher.java:344)
    2. com.sun.crypto.provider.RSACipher.engineDoFinal(RSACipher.java:389)
    2 frames
  3. Android Platform
    Cipher.doFinal
    1. javax.crypto.Cipher.doFinal(Cipher.java:2165)
    1 frame
  4. Unknown
    main.main
    1. main.main(main.java:35)
    1 frame
  5. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:498)
    4 frames
  6. IDEA
    AppMain.main
    1. com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)
    1 frame