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)
因为用到所以就写了个加密的方法
如您发现有任何错误请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)







评论排行榜