public class DesUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
algorithm |
static String |
CHARSET |
| Constructor and Description |
|---|
DesUtils() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
decrypt(byte[] cipherData,
byte[] keyData) |
static String |
decrypt(String cipherText,
String keyString) |
static byte[] |
encrypt(byte[] plainData,
byte[] keyData) |
static String |
encrypt(String plainText,
String keyString) |
public static final String CHARSET
public static String algorithm
public static byte[] encrypt(byte[] plainData,
byte[] keyData)
throws Exception
Exceptionpublic static byte[] decrypt(byte[] cipherData,
byte[] keyData)
throws Exception
Exceptionpublic static String encrypt(String plainText, String keyString) throws Exception
ExceptionCopyright © 2021. All rights reserved.