@Deprecated public class DesUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
CIPHER_ALGORITHM_CBC
Deprecated.
|
static String |
CIPHER_ALGORITHM_ECB
Deprecated.
|
static String |
KEY_ALGORITHM
Deprecated.
|
| Constructor and Description |
|---|
DesUtil()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
decrypt(byte[] data,
byte[] key)
Deprecated.
解密
|
static String |
decryptForYunpian(String data,
String key)
Deprecated.
|
static byte[] |
encrypt(byte[] data,
byte[] key)
Deprecated.
加密
|
static String |
encryptForYunpian(String data,
String key)
Deprecated.
|
static void |
main(String[] args)
Deprecated.
|
public static final String KEY_ALGORITHM
public static final String CIPHER_ALGORITHM_ECB
public static final String CIPHER_ALGORITHM_CBC
public static String encryptForYunpian(String data, String key) throws Exception
Exceptionpublic static String decryptForYunpian(String data, String key) throws Exception
Exceptionpublic static byte[] encrypt(byte[] data,
byte[] key)
throws Exception
data - 原文key - ExceptionCopyright © 2017. All rights reserved.