java AES加密解密 // 加密 public static String Encrypt(String sSrc, String sKey) throws Exception { if (sKey == null) { log.error("Key为空null"); return null; } // 判断Key是否为16位 if (sKey.length() != 16) { log.error("Key长度不是16位"); return null; } byte[] raw = sKey.getBytes