public class AESEncryptor extends Object implements SymmetricEncryptor
public String encrypt(byte[] body, String secretKey) throws InvalidKeyException
encrypt 在接口中 SymmetricEncryptorbody - 待加密数据secretKey - AES秘钥LeonaRuntimeException - AES加密异常InvalidKeyExceptionpublic byte[] decrypt(String body, byte[] secretKey) throws InvalidKeyException
decrypt 在接口中 SymmetricEncryptorbody - 待解密数据secretKey - AES秘钥LeonaRuntimeException - AES解密异常InvalidKeyExceptionCopyright © 2020. All rights reserved.