try { MessageDigest md = MessageDigest.getInstance("MD5"); result = byte2hex(md.digest(orgin.toString().getBytes("utf-8")));//orign为原始内容;类型是string } catch (Exception e) { throw new java.lang.RuntimeException("sign error !"); }
用于加密字符串~~