| 构造器和说明 |
|---|
DESUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
private static String |
byte2hex(byte[] b) |
static byte[] |
decrypt(byte[] data,
byte[] key)
解密
|
static String |
decrypt(String data,
String key)
解密
|
static byte[] |
encrypt(byte[] data,
byte[] key)
加密
|
static String |
encrypt(String data,
String key)
加密
|
private static byte[] |
hex2byte(byte[] b) |
public DESUtil()
public static byte[] encrypt(byte[] data, byte[] key) throws Exception
data - key - Exceptionpublic static String encrypt(String data, String key) throws Exception
data - key - Exceptionpublic static byte[] decrypt(byte[] data, byte[] key) throws Exception
data - key - Exceptionpublic static String decrypt(String data, String key) throws Exception
data - key - Exceptionprivate static byte[] hex2byte(byte[] b)
Copyright © 2024. All rights reserved.