code: public static String encryptAsString(final SecretKey secretKey, final String plainText) throws Exception {
          return Base64.getEncoder().encodeToString(encryptAsBytes(secretKey, plainText));
      }
docs: Encrypts the specified plainText using AES-256 and returns a Base64 encoded
  representation of the encrypted bytes.
  @param secretKey the secret key to use to encrypt with
  @param plainText the text to encrypt
  @return a Base64 encoded representation of the encrypted bytes
  @throws Exception a number of exceptions may be thrown
  @since 1.3.0