|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectorg.jiucai.appframework.common.encrypt.EncryptUtil
public class EncryptUtil
动态密钥的加密解密算法
| 构造方法摘要 | |
|---|---|
EncryptUtil()
|
|
| 方法摘要 | |
|---|---|
static String |
byte2Hex(byte[] buf)
将二进制转换成16进制 |
static String |
decode(String encodeMsg,
String key)
|
static String |
encode(String msg,
String key)
|
static String |
encrypt(String msg,
String key)
加密字符串 |
static byte[] |
hex2Byte(String hexStr)
将16进制转换为二进制 |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 构造方法详细信息 |
|---|
public EncryptUtil()
| 方法详细信息 |
|---|
public static String encrypt(String msg,
String key)
throws Exception
msg - 字符串key - 密钥
Exception
public static String encode(String msg,
String key)
throws Exception
Exception
public static String decode(String encodeMsg,
String key)
throws Exception
Exceptionpublic static String byte2Hex(byte[] buf)
buf -
public static byte[] hex2Byte(String hexStr)
hexStr -
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||