java.security.InvalidKeyException: Invalid key length: 162 bytes

Coderanch | sachin kataria | 1 decade 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

    Error while encrypting the xml file using asymmetric cipher...pls help

    Oracle Community | 1 decade ago | 843811
    java.security.InvalidKeyException: Invalid key length: 162 bytes
  2. 0

    Error while encrypting the xml file using asymmetric cipher...pls help

    Coderanch | 1 decade ago | sachin kataria
    java.security.InvalidKeyException: Invalid key length: 162 bytes
  3. 0

    Execption encrypting a file

    Oracle Community | 1 decade ago | 843810
    java.security.InvalidKeyException: Invalid key length: 162 bytes
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    TripleDES query --Urgent!!

    Oracle Community | 1 decade ago | 843810
    java.security.InvalidKeyException: Invalid key length: 32 bytes
  6. 0

    Incompitibility of 3DES Cryptogram Key between java and C++

    Oracle Community | 1 decade ago | 843811
    java.security.InvalidKeyException: Invalid key length: 16 bytes **********sessionKey ************

    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. java.security.InvalidKeyException

      Invalid key length: 162 bytes

      at com.sun.crypto.provider.DESedeCipher.engineGetKeySize()
    2. com.sun.crypto
      DESedeCipher.engineGetKeySize
      1. com.sun.crypto.provider.DESedeCipher.engineGetKeySize(DashoA6275)
      1 frame
    3. Android Platform
      Cipher.init
      1. javax.crypto.Cipher.init(DashoA6275)
      1 frame
    4. Unknown
      demoXmlEncApp.main
      1. XmlEncryption.getEncryptedData(XmlEncryption.java:147)
      2. XmlEncryption.encryptCompleteXmlFile(XmlEncryption.java:123)
      3. demoXmlEncApp.simulateBookSellersEnd(demoXmlEncApp.java:72)
      4. demoXmlEncApp.main(demoXmlEncApp.java:29)
      4 frames