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

Stack Overflow | tmf1234 | 5 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

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

    Stack Overflow | 5 months ago | tmf1234
    javax.crypto.IllegalBlockSizeException: Data must not be longer than 1013 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

    Cannot decrypt key

    GitHub | 2 years ago | yamen23ali
    java.lang.IllegalStateException: Cannot decrypt
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Dual Signature - Information Security

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

    jboss 5.1 ssl client authentification

    codegur.com | 9 months ago
    javax.crypto.IllegalBlockSizeException: Data must not be longer than 256 bytes

  1. iferca 2 times, last 3 months 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 1013 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