public static void main(String[] args) {
		String s = "国无锡";
		
		try {
			MessageDigest md = MessageDigest.getInstance("MD5");
			md.update(s.getBytes());
			
			byte[] b = md.digest();
			int i;
            StringBuffer buf = new StringBuffer("");
            for (int offset = 0; offset < b.length; offset++) {
                 i = b[offset];
                 if (i < 0)
                     i += 256;
                 if (i < 16)
                     buf.append("0");
                 buf.append(Integer.toHexString(i));
            }
			
			System.out.println(buf.toString());
			
		} catch (NoSuchAlgorithmException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
		
		byte[] buf = MD5(s.getBytes());
				String tmp = ""; 
				for (int i = 0; i < buf.length; i++) 
				    tmp = tmp + byteToHex(buf[i], 2); 
				System.out.println(tmp.toUpperCase());
	}