Skip to content

base64dec

Written as base64dec(argnum flags):options in a transform expression.

Minimum arguments 1
Maximum arguments 1
Default arguments 1
Argument modes SINGLE_PRIMITIVE

Base64-decode a base64-encoded text/bytes argument into raw bytes.

This transform takes a single base64-encoded input (either as string or bytes) and returns the decoded bytes. The input must be properly padded base64.

Notes:

  • Raises binascii.Error if input is not properly padded base64
  • Returns bytes even if original content was text
  • Does not perform any character encoding/decoding of the raw bytes
Flag Letter
noncaptive_input I
Input args: ["U29tZSB0ZXh0"]
Transforms: "base64dec:"
Output: "Some text"
Input args: ["U29tZSB0ZXh0"]
Transforms: "base64dec:"
Output: "Some text"