Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: Blowfish Decryption gave exception "Input length must be multiple of 8 when decrypting with padded cipher"

  1. #1
    Junior Member
    Join Date
    Mar 2013
    Location
    Chennia INDIA
    Posts
    2
    My Mood
    Cool
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Post Blowfish Decryption gave exception "Input length must be multiple of 8 when decrypting with padded cipher"

    Hi Guys ,

    I am trying to do encryption / decryption for Blowfish with mode CBC and PKCS5Padding. while decrypting the cipher text it is throwing below exception. Same is working fine if i used Base64 encoder/decoder. But while trying to decryption without Base64 only problem is occurring.

    Exception :
    javax.crypto.IllegalBlockSizeException: Input length must be multiple of 8 when decrypting with padded cipher
    at com.sun.crypto.provider.SunJCE_h.b(DashoA12275)
    at com.sun.crypto.provider.SunJCE_h.b(DashoA12275)
    at com.sun.crypto.provider.BlowfishCipher.engineDoFin al(DashoA12275)
    at javax.crypto.Cipher.doFinal(DashoA12275)
    at EncryptDecrypt.main(EncryptDecrypt.java:94)


    can anyone please help on this .....


  2. #2
    Junior Member
    Join Date
    Mar 2013
    Location
    Kolkata,India
    Posts
    8
    My Mood
    Relaxed
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default Re: Blowfish Decryption gave exception "Input length must be multiple of 8 when decrypting with padded cipher"

    Google led me here.

Similar Threads

  1. Replies: 4
    Last Post: December 23rd, 2012, 09:56 AM
  2. Decryption Problem | Input length (with padding) not multiple of 8 bytes
    By sachinsunny in forum What's Wrong With My Code?
    Replies: 0
    Last Post: December 6th, 2012, 03:30 AM
  3. Decryption Problem | Input length (with padding) not multiple of 8 bytes
    By sachinsunny in forum What's Wrong With My Code?
    Replies: 0
    Last Post: December 6th, 2012, 03:16 AM
  4. Replies: 7
    Last Post: August 13th, 2011, 02:22 AM
  5. "java.lang.NoSuchMethodError: main" and "fatal exception occured."
    By joachim89 in forum What's Wrong With My Code?
    Replies: 2
    Last Post: January 10th, 2010, 08:35 AM