package com.my.blog.website; import com.my.blog.website.modal.Vo.UserVo; import com.my.blog.website.utils.TaleUtils; /** * Created by shuaihan on 2017/4/2. */ public class Pwdtest { public static void main(String args[]){ UserVo user = new UserVo(); user.setUsername("admin"); user.setPassword("asdfasdfs"); String encodePwd = TaleUtils.MD5encode(user.getUsername() + user.getPassword()); System.out.println(encodePwd); } }