@Override
    public String encrypt(String key, byte[] objectBytes) {
        try {
            byte[] keyDecode = Base64.decode(key);
            org.apache.shiro.crypto.cipher.AesCipherService cipherService = new org.apache.shiro.crypto.cipher.AesCipherService();
            org.apache.shiro.lang.util.SimpleByteSource byteSource = ( org.apache.shiro.lang.util.SimpleByteSource) cipherService.encrypt(objectBytes, keyDecode);
            return byteSource.toBase64();
        }catch (Exception e){
            e.printStackTrace();
        }

        return null;

    }
@ClassName: ShiroGCM
@Description: TODO
@Author: Summer
@Date: 2022/4/18 15:05
@Version: v1.0.0
@Description:
src/main/java/com/summersec/attack/Encrypt/ShiroGCM.java