library-common/src/com/lcjian/library/util/security/DEScrypt.java
@@ -16,11 +16,11 @@ public class DEScrypt { /** * [加密]DES-->BASE64-->密文 * * <p> * [解密]BASE64->DES-->明文 * * <p> * 秘钥和向量要双方约定一致 * * <p> * DES加密的私钥,必须是8位长的字符串 */ private static final byte[] DESkey = Base64.decode("VW1nT3R2WVk=", Base64.DEFAULT);// 设置密钥 @@ -59,6 +59,8 @@ public static String decode(String data) { String result = ""; if (data == null) return result; Cipher deCipher; try { deCipher = Cipher.getInstance("DES/CBC/PKCS5Padding");