base64dec
Written as base64dec(argnum flags):options in a transform expression.
| Minimum arguments | 1 |
| Maximum arguments | 1 |
| Default arguments | 1 |
| Argument modes | SINGLE_PRIMITIVE |
Documentation
Section titled “Documentation”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 |
Examples
Section titled “Examples”Basic decoding
Section titled “Basic decoding”Input args: ["U29tZSB0ZXh0"]Transforms: "base64dec:"Output: "Some text"With bytes input
Section titled “With bytes input”Input args: ["U29tZSB0ZXh0"]Transforms: "base64dec:"Output: "Some text"