TripleDES encryption error in java
问题 I'm following this tutorial to use 3DES encryption, and i needed to make some changes in cipher settings, so here's my code: public class TripleDES { public static int MAX_KEY_LENGTH = DESedeKeySpec.DES_EDE_KEY_LEN; private static String ENCRYPTION_KEY_TYPE = "DESede"; private static String ENCRYPTION_ALGORITHM = "DESede/ECB/PKCS7Padding"; private final SecretKeySpec keySpec; private final static String LOG = "TripleDES"; public TripleDES(String passphrase) { byte[] key; try { // get bytes