code: private static String aesDecrypt(String content, String key, String charset)
                                                                                  throws AlipayApiException {
          try {
              Cipher cipher = Cipher.getInstance(AES_CBC_PCK_ALG);
              IvParameterSpec iv = new IvParameterSpec(initIv(AES_CBC_PCK_ALG));
              cipher.init(Cipher.DECRYPT_MODE, new SecretKeySpec(Base64.decodeBase64(key.getBytes()),
                  AES_ALG), iv);
  
              byte[] cleanBytes = cipher.doFinal(Base64.decodeBase64(content.getBytes()));
              return new String(cleanBytes, charset);
          } catch (Exception e) {
              throw new AlipayApiException("AES解密失败：Aescontent = " + content + "; charset = "
                                           + charset, e);
          }
      }
docs: AES解密
  
  @param content
  @param key
  @param charset
  @return
  @throws AlipayApiException