### Question:
DES extends Encrypter { public Map<String,String> transferMapValue(Map<String, String> params){ Map<String,String> postmap=new HashMap<String,String>(); Iterator entries = params.entrySet().iterator(); while (entries.hasNext()) { Map.Entry entry = (Map.Entry) entries.next(); String paramkey = (String)entry.getKey(); String paramvalue = (String)entry.getValue(); String desStr = DESUtilWithIV.des(paramvalue, key, Cipher.ENCRYPT_MODE); postmap.put(paramkey,desStr); } postmap.put("encrypt","1"); LogUtil.debugLogWithJava("调试，开始加密字符串"); LogUtil.debugLogWithJava("加密后的map"); LogUtil.debugLogWithJava(postmap.toString()); return postmap; } DES(String key); Map<String,String> transferMapValue(Map<String, String> params);  }### Answer:
@Test public void testTransferMapValue() throws Exception{ Map<String,String> postmap=new HashMap<String,String>(); postmap.put("time","2090 12 04"); postmap.put("title","支付宝支付"); postmap.put("money","345.56"); postmap.put("content","测试des伪造的"); des.transferMapValue(postmap); }