
相关方法Utils
羽缘的小窝
a student who want to be a best person. I think that you will success as long as you are better than yesterday.
展开
-
MD5加密方法
得到字节 每个字节与11111111与操作得到int值 转换成16进制 如果长度小于2 后面加0 组合起来返回 import java.security.MessageDigest; import java.security.NoSuchAlgorithmException;public class MD5Utils { public static String md5Password(St原创 2015-12-16 15:31:39 · 248 阅读 · 0 评论 -
输入流返回字符串
public class StreamTools { /** * @param is 输入流 * @return String 返回的字符串 * @throws IOException */ public static String readFromStream(InputStream is) throws IOException{原创 2015-12-16 15:35:23 · 333 阅读 · 0 评论