crypto.base64.encode --text TEXT → base64Standard Base64 (padded) of the UTF-8 bytes of --text. Adds base64: { value } and keeps the rest of the payload. An empty --text is refused. Base64 is an encoding, not a secret: anyone can decode it.
Flags
--text(required): The text to encode.
Examples
A Basic auth value
| crypto.base64.encode --text "{{ input.user + ':' + input.token }}"It answers:
json
{ "base64": { "value": "ZGVtbzpzZWNyZXQ=" }}