public class DesTool
extends Object
-
-
方法概要
static byte[]
static byte[]
static void
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
方法详细资料
-
encrypt
public static byte[] encrypt(byte[] data,
String key)
加密
- 参数:
data - 参数
key - 参数
- 返回:
- 返回 返回
-
encrypt
加密
- 参数:
text - 参数
key - 参数
- 返回:
- 返回 返回
-
decrypt
解密
- 参数:
data - data
key - key
- 返回:
- 返回
- 抛出:
Exception - 异常
-
-