### Question:
EncryptUtils { public static String desDecrypt(String source) throws Exception { byte[] src = hex2byte(source.getBytes()); DESKeySpec desKeySpec = getDesKeySpec(source); SecretKeyFactory keyFactory = SecretKeyFactory.getInstance("DES"); SecretKey secretKey = keyFactory.generateSecret(desKeySpec); cipher.init(Cipher.DECRYPT_MODE, secretKey, iv); byte[] retByte = cipher.doFinal(src); return new String(retByte); }  static String desEncrypt(String source); static String desDecrypt(String source); static String encryptPassword(String password);  }### Answer:
@Test public void testDesDecrypt() { try { Assert.assertEquals("123456", EncryptUtils.desDecrypt("7772841DC6099402")); } catch (Exception e) { e.printStackTrace(); } }