random bytes
This block is part of the value group and was last modified in core v14.0.2.
random bytes v14.0.2 In pins 2
- Size required
numberDefault: 16. Max: 256
- encoding required
valueDefault: hex. Allowed values: hex, base64
Out pins 1
- value
value
Outputs N crypto-random bytes encoded as a string: hex (default, 2*N characters) or base64. N comes from the number pin, defaults to 16, resets to 16 when negative, and is clamped to 256; any encoding other than hex or base64 silently falls back to hex.
salt |
A typical wiring for random bytes: number feeds the number pin; value feeds the encoding pin; the value out pin feeds convert to uppercase.

Commonly used with
In production blueprints, this block is most often wired together with:
- set fields: this block feeds into it. Generates an array of mutations based on the given filled fields.
- number: feeds into this block. Generates a valid number from the filled custom value in the blueprint.
- value: feeds into this block. Simply returns the provided value.
Version history
Introduced in v14.0.2.
Back to
value Return to the main group to view all sub-groups Back to crypto Return to the group to view all blocks within this group
