import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.util.UUID;
import sun.misc.BASE64Encoder;
public class UtilUuid {
public static String getUuid(){
UUID uuid=UUID.randomUUID();
return uuid.toString();
}
public static String getMd5(String password){
MessageDigest md=null;
String key="buaa";
password=password+key;
byte[] pw=null;
try {
md = MessageDigest.getInstance("md5");
pw= md.digest(passwor
import java.security.NoSuchAlgorithmException;
import java.util.UUID;
import sun.misc.BASE64Encoder;
public class UtilUuid {
public static String getUuid(){
UUID uuid=UUID.randomUUID();
return uuid.toString();
}
public static String getMd5(String password){
MessageDigest md=null;
String key="buaa";
password=password+key;
byte[] pw=null;
try {
md = MessageDigest.getInstance("md5");
pw= md.digest(passwor