类 AESExample
- java.lang.Object
-
- risesoft.data.transfer.plug.data.encrypt.AESExample
-
public class AESExample extends Object
对称加密AES- 作者:
- lb
- Date:
- 2024年3月12日
-
-
方法详细资料
-
encrypt
public static String encrypt(String valueToEnc) throws Exception
加密- 参数:
valueToEnc-- 返回:
- 抛出:
Exception
-
encrypt
public static String encrypt(String valueToEnc, byte[] key) throws Exception
加密- 参数:
valueToEnc-- 返回:
- 抛出:
Exception
-
decrypt
public static String decrypt(String encryptedValue) throws Exception
解密- 参数:
encryptedValue-- 返回:
- 抛出:
Exception
-
-