微信退款通知

来源:互联网 发布:陌陌一键打招呼软件 编辑:程序博客网 时间:2024/05/17 02:55

需要2个jar吧

替换掉 jdk1.8 下的jre 下的 lib -security下


http://download.csdn.net/download/u013802160/10128378


     byte[] decode =new BASE64Decoder().decodeBuffer(reqInfo);    SecretKeySpec key = new SecretKeySpec(MD5Util.MD5Encode(SystemLoader.getProjectProperty(ProjectPropertiesContants.WEIXIN_PARTNERKEY), "UTF-8").toLowerCase().getBytes(), "AES");        Cipher cipher = Cipher.getInstance("AES/ECB/PKCS5Padding");    cipher.init(Cipher.DECRYPT_MODE, key);    String xmlData=new String(cipher.doFinal(decode),"UTF-8");        Map<String, String> trueResult=callXMLToMap(xmlData);


原创粉丝点击