?下面的类用于字符。有4个方法。
1、将字符转化为GBK编码
2、将字符转化为GB2312编码
3、md5加密字符串
4、md5加密文件
?
[java:showcolumns] view plain copy ·········10········20········30········40········50········60········70········80········90········100·······110·······120·······130·······140·······150?
下面方法用于过滤sql注入和Xss攻击(方法过滤考虑的攻击方式有限,待完善)
?
[java] view plain copy原文转自:http://blog.csdn.net/pilove310/article/details/4302130
?