public class PwdCreate {
public static void main(String[] args){
char[] pwdChar = new char[16]; for(int i = 0; i < pwdChar.length; i++){
int type = MyTools.getRandom(0, 2); if(type == 0){
pwdChar[i] = (char)MyTools.getRandom(48, 57); } else if(type == 1){
pwdChar[i] = (char)MyTools.getRandom(65, 90); } else {
pwdChar[i] = (char)MyTools.getRandom(97, 122); } } String pwd = new String(pwdChar); System.out.println(pwd); System.out.println(pwd.toLowerCase()); System.out.println(MD5.encode(pwd).toUpperCase()); /* s2m3j6pc f299zdy5 45g2ttfz w86dype9 nh7ds1po gvvk83ca vgb45nc7 pogyu4ha n7s2fzf4 9gmqn290 j36qu4xk lxss2z8u */ } }