类 CodeAesUtils
java.lang.Object
com.abasecode.opencode.base.safe.util.CodeAesUtils
- 作者:
- Jon e-mail: ijonso123@gmail.com url: Jon's blog url: project github url: AbaseCode.com
-
字段详细资料
-
构造器详细资料
-
CodeAesUtils
public CodeAesUtils()
-
-
方法详细资料
-
encrypt
encrypt- 参数:
source- sourcekey- keyiv- iv- 返回:
- result
- 抛出:
Exception
-
decrypt
decrypt- 参数:
encString- encrypt datakey- keyiv- iv- 返回:
- result
- 抛出:
Exception
-
encrypt
public static String encrypt(String source, String key, String iv, String additionalData) throws Exception encrypt with GCM- 参数:
source-key-iv-additionalData-- 返回:
- result
- 抛出:
Exception
-
decrypt
public static String decrypt(String encString, String key, String iv, String additionalData) throws Exception decrypt with GMC- 参数:
encString- encrypt datakey- keyiv- iv , nonceadditionalData- additional data- 返回:
- result
- 抛出:
Exception
-