encode

This block is part of the value group and was last modified in core v9.3.13.

encode v9.3.13

Encode a raw value into Base64.

In pins 1
  • Raw required
    value

    Raw value to encode in Base64.

Out pins 1
  • Encoded
    value

    The Base64 encoded value.

Encodes the input to STANDARD Base64 with padding (not URL-safe). Strings and byte inputs are encoded as-is; other types are coerced to a string and whitespace-TRIMMED first. A nil or unwired raw pin writes NO output at all.

A typical wiring for encode: value feeds the raw pin; the encoded out pin feeds exists.

Studio canvas example for the encode block: typical wiring for encode.

Commonly used with

In production blueprints, this block is most often wired together with:

  • get cache key: this block feeds into it. gets the key and returns true or false based of its existence, makes it easier for cache-management in flows.
  • exists: this block feeds into it. Checks if the key already exists.
  • set: this block feeds into it. Set key to hold the string value. If key already holds a value, it is overwritten, regardless of its type.
  • set cache ttl: this block feeds into it. set the time to live in seconds.
  • create: feeds into this block. Creates a new function that can be executed using the given name.
  • get fields: feeds into this block. Gets the given fields from user data and returns this per data-pin.

Version history

Introduced in v9.3.13.


Back to value Return to the main group to view all sub-groups Back to base64 Return to the group to view all blocks within this group