Encode
Encode a value as JSON, Base64, Base64 URL, hex, or encrypt.
Type
utl.encode Block Utility
Folder
basic/utilityChannels
Any
Pipe
Value
Scope
Any
Encode turns Value into text using Encode type. The result is written to the data pipe. Use Decode for the reverse (including Decrypt for Encrypt).
Configure
| Setting | Description |
|---|---|
| Value | Literal or variable to encode (required) |
| Encode type | JSON, Base64, Base64 URL, Hex, or Encrypt |
Handles
| Handle | Role |
|---|---|
| In (target) | Incoming connection |
| Out (source) | Continues after encoding |
Pipe schema
The next block reads this on the data pipe (pipe.value). The value is text.
Use case
- Base64-encode a token before an API header.
- JSON-encode an object to send as text.