code: public static String encryptData(String key, String encryptedData, String iv) throws Exception {
          byte[] sessionKeyArray = Base64Utils.getInstance().decoder(key);
          byte[] encryptedDataArray = Base64Utils.getInstance().decoder(encryptedData);
          byte[] ivArray = Base64Utils.getInstance().decoder(iv);
  
          SecretKeySpec secretKey = new SecretKeySpec(sessionKeyArray, "AES");
          byte[] enCodeFormat = secretKey.getEncoded();
          SecretKeySpec secKey = new SecretKeySpec(enCodeFormat, "AES");
          Cipher cipher = Cipher.getInstance("AES/CBC/PKCS5Padding");// 创建密码器
          cipher.init(Cipher.ENCRYPT_MODE, secKey, new IvParameterSpec(ivArray));// 初始化
          byte[] result = cipher.doFinal(encryptedDataArray);
          return new String(result);
      }
docs: AES 解密
  
  @param key
  @param encryptedData
  @param iv
  @return
  @throws Exception