String code = RandomStringUtils.randomNumeric(6);//生成6位随机数(int)((Math.random()*9+1)*100000)//生成6位随机数DigestUtils.md5Hex("123456");//MD5加密