Triple DES decryption invalid key with 16 bytes
问题 I have an android project in which am getting an Triple DES encrypted piece of text from my web services. I need to Triple DES decrypt. However, I am getting invalid key exceptions. My key is converted to HEX format and I got an error: W/System.err﹕ java.security.InvalidKeyException: DES key too long - should be 8 bytes I found here a forum explaining that hex may cause issue "DES keys are 56 bits normally packaged in 8 bytes so the chances are that the 16 bytes/characters they have given you