Zebflow Docs
crypto.base64.decode
Zebflow Docs

crypto.base64.decode

Decode the standard Base64 string in --from to UTF-8 text

crypto.base64.decode --from TEXT → base64

Decode the standard Base64 string in --from to UTF-8 text. Adds base64: { text } and keeps the rest of the payload. An empty --from, a string that is not Base64, or bytes that are not UTF-8 text are refused.

Flags

  • --from (required): The Base64 string to decode.

Examples

Read an encoded field

| crypto.base64.decode --from "{{ $trigger.body.data }}"

Input:

json
{  "webhook": {    "body": {      "data": "aGVsbG8="    }  }}

It answers:

json
{  "webhook": {    "body": {      "data": "aGVsbG8="    }  },  "base64": {    "text": "hello"  }}