Fernet icon

Fernet

Encrypt and decrypt data with Fernet symmetric encryption

Encrypt

AI-generated

Summary

Encrypts text or JSON with Fernet using a key from credentials or a node field, and returns the token in each output item’s result field.

Inputs

  • Input Source (required) — Choose a value from an incoming JSON field, enter JSON in the node, or enter text. Defaults to Text Value.
  • Input Field — When Input Source is JSON Field, provide the field path to encrypt; dot notation is supported.
  • JSON — When Input Source is JSON Value, provide the JSON object to encrypt. The node serializes non-string values as JSON text.
  • Text — When Input Source is Text Value, provide the text to encrypt; expressions are supported.
  • Key Source (required) — Choose the Fernet credential or a key entered in the node. Defaults to Credential.
  • Fernet Key — When Key Source is Node Field, provide a URL-safe base64-encoded key that decodes to 32 bytes.

Output shape

One output item per input item, each containing json.result with the Fernet token.

Items retain their pairing with the corresponding input. Empty input values and invalid keys cause errors; if Continue On Fail is enabled, the affected item instead contains json.error.

Links

Discussion