public class AesUtils
extends Object
-
-
方法概要
byte[]
byte[]
static void
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
构造器详细资料
-
AesUtils
指定密钥构造方法.
- 参数:
strKey - 指定的密钥
- 抛出:
Exception - 异常
-
方法详细资料
-
encrypt
public byte[] encrypt(byte[] arr)
throws Exception
加密字节数组.
- 参数:
arr - 需加密的字节数组
- 返回:
- 加密后的字节数组
- 抛出:
Exception - 异常
-
encrypt
加密字符串.
- 参数:
strIn - 需加密的字符串
- 返回:
- 加密后的字符串
- 抛出:
Exception - 异常
-
decrypt
public byte[] decrypt(byte[] arr)
throws Exception
解密字节数组.
- 参数:
arr - 需解密的字节数组
- 返回:
- 解密后的字节数组
- 抛出:
Exception - 异常
-
decrypt
解密字符串.
- 参数:
strIn - 需解密的字符串
- 返回:
- 解密后的字符串
- 抛出:
Exception - 异常
-