public class AESUtil
extends Object
-
-
方法概要
static byte[]
decode(byte[] secret,
byte[] content)
static byte[]
encode(byte[] secret,
byte[] content)
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
方法详细资料
-
encode
public static byte[] encode(byte[] secret,
byte[] content)
throws Exception
- 抛出:
Exception
-
decode
public static byte[] decode(byte[] secret,
byte[] content)
throws Exception
- 抛出:
Exception
-
decrypt
AES解密
- 参数:
data - //密文,被加密的数据
key - //秘钥
iv - //偏移量
encodingFormat - //解密后的结果需要进行的编码
- 返回:
- 抛出:
Exception