public class EncryptUtil extends Object
public static String encrypt(String msg, String key) throws Exception
msg - 字符串key - 密钥Exceptionpublic static String byte2Hex(byte[] buf)
buf - public static byte[] hex2Byte(String hexStr)
hexStr - Copyright © 2013. All Rights Reserved.