Encode

Cryptography Pure
Encode
Text
Result
Algorithm BASE64

Description

Pure function encoding text using the selected algorithm. Base64 produces the standard Base64 alphabet; URL uses application/x-www-form-urlencoded encoding.

When to use

Use Encode when you need to transform text into a safe representation for transport or embedding. Base64 is common for embedding binary-safe payloads in JSON or HTTP headers. URL encoding is essential when building query strings or form data that may contain special characters like spaces, ampersands, or equals signs.

Pins

Input pins

Pin Type Default Notes
Text string The text to encode.
Algorithm enum BASE64 The encoding algorithm to use. Base64 encodes to the standard alphabet (RFC 4648); URL encodes for use in query strings.

Output pins

Pin Type Notes
Result string The encoded text.

Example

Base64-encode an API key before passing it as a header value. Wire the raw key string into the Text input of Encode with Algorithm set to Base64. Feed the Result output into a Concatenate strings node to prepend "Basic " and then wire the concatenated value into an Add HTTP header node.

See also