http://blog.csdn.net/jacklondon/archive/2003/05/18/14263.aspx
  • 17:08
  • 浏览 (680)
  • 评论 (0)
因为用到所以就写了个加密的方法 如您发现有任何错误请Mailto我, useroot@hotmail.com /** * 转换汉字编码 * @param strs * @return */ public static String changeEncode(String strs) { String temp; try { temp = new String(strs.getBytes("ISO8859-1"), "GBK"); } catch (Exception e) { temp = ""; } return temp; ...
  • 09:32
  • 浏览 (691)
  • 评论 (0)
2004-08-25

MD5加密

因为用到所以就写了个加密的方法 如您发现有任何错误请Mailto我, useroot@hotmail.com /** * MD5加密 * * @param str * @return */ public static String md5(String str) { try { MessageDigest md = MessageDigest.getInstance("MD5"); md.update(str.getBytes("UTF8")); ...
  • 09:22
  • 浏览 (735)
  • 评论 (0)
好久没来了 忽然发现 右边了blog 开心 庆祝一下
  • 11:00
  • 浏览 (657)
  • 评论 (0)
空心菜
搜索本博客
最近加入圈子
最新评论
评论排行榜