Task - Base64 encode/decode

This task either encodes data into Base64, or decodes it.

Base64 encoding/decoding settings

Description

Contains a description of the task, enter the reason for its existence here.

JSON key: description
Default value: Blank

Input

Enter the input to encode or decode here - see Scripts and Macros for details on how to specify macro content.

JSON key: input
Default value: None

Encode input

Check to Base64 encode input, uncheck to decode.

JSON key: encode
Default: false

URL Safe encoding

Check to enable URL Safe encoding - using characters that are safe in URLs - see https://tools.ietf.org/html/rfc4648 for details.

JSON key: urlsafe
Default: false

Request attribute name

Name of request attribute to store encoded/decoded value within. This request attribute is stored within the context for the currently executing request.

JSON key: target.attribute.name
Default: None

JSON Configuration

Below is a set of example configuration.

{
  "encode": true,
  "input": "%{REQUEST_BODY}",
  "urlsafe": false,
  "target.attribute.name": "encode_body",
  "description": "Encodes request body",
  "class": "io.ceptor.pipeline.tasks.Base64Task"
}

© Ceptor ApS. All Rights Reserved.