Hash Data
Hashes data with SHA-256, SHA-384 or SHA-512 (hex).
Computes the hexadecimal SHA-256, SHA-384 or SHA-512 digest of a value. Strings are hashed as UTF-8; any other value is JSON-serialized first.
How it works
- Resolves the config; use a pure expression such as
{{ $json.email }}indata. - Leaves through
errorwithdata is requiredwhendatais undefined, null or an empty string. - Checks
algorithm(defaultsha256) againstsha256,sha384andsha512. - Serializes non-string values with
JSON.stringifyand digests the UTF-8 text. - Returns
{ hash }(lowercase hex) onout, withmeta.crypto.
In a workflow
The node as it appears in a workflow file (draft_nodes[]), and the envelope of a successful run.
{
"node_id": "node-hash-email",
"label": "Hash customer email",
"operator_slug": "crypto.hash",
"operator_version": "2.0.0",
"config": {
"data": "{{ $json.email }}",
"algorithm": "sha256"
}
}{
"ok": true,
"port": "out",
"data": {
"hash": "8c87b489ce35cf2e2f39f80e282cb2e804932a56a213983eeeb428407d43b52d"
},
"meta": {
"crypto": {
"op": "hash",
"key_source": null,
"alias": null,
"credential_id": null,
"algorithm": "sha256",
"ok": true
}
}
}Configuration
-
dataany Required -
Data to hash (objects are JSON-serialized)
-
algorithmstring Optional
Behaviour in the code
What the implementation does with these keys beyond what the schema says.
-
data - Objects are serialized with
JSON.stringify, so key order matters:{"a":1,"b":2}and{"b":2,"a":1}give different hashes. Normalize the value first when you compare hashes across systems.
Output ports
out default The digest was computed.
{
"hash": "8c87b489ce35cf2e2f39f80e282cb2e804932a56a213983eeeb428407d43b52d"
}error data is missing or the algorithm is not supported.
{
"error": "Unsupported hash algorithm: md5"
}In expressions
What a later node can read from this node's output with $("Hash Data").item.json.<path> (write your node's label instead of Hash Data). Editor marks the paths the workflow editor suggests under Previous Nodes (the output contract); Worker marks the paths the worker really returns through out, from the output shown in Ports.
| Expression | Editor | Worker |
|---|---|---|
$("Hash Data").item.json.hash |
Errors
| Message | Port | Cause and fix |
|---|---|---|
data is required | error | data is empty or its expression resolved to nothing. 0 and false are valid values. |
Unsupported hash algorithm: <algorithm> | error | Only sha256, sha384 and sha512 are accepted. |
Input contract
-
dataany Required -
algorithmstring Optional
Output contract
-
hashstring Optional
Contracts (JSON Schema)
The definition exactly as the orchestrator declares it. All is the whole *.definition.js; compare it with the sections above to spot differences between the documentation and the schema. Use it to validate a node before you publish.
{
"slug": "crypto.hash",
"name": "Hash Data",
"category": "identity",
"version": "2.0.0",
"description": "Hashes data with SHA-256, SHA-384 or SHA-512 (hex).",
"capabilities": [
"crypto",
"hash"
],
"config_schema": {
"type": "object",
"properties": {
"data": {
"description": "Data to hash (objects are JSON-serialized)"
},
"algorithm": {
"type": "string",
"default": "sha256",
"enum": [
"sha256",
"sha384",
"sha512"
]
}
},
"required": [
"data"
]
},
"input_contract_schema": {
"type": "object",
"properties": {
"data": {},
"algorithm": {
"type": "string"
}
},
"required": [
"data"
]
},
"output_contract_schema": {
"type": "object",
"properties": {
"hash": {
"type": "string"
}
}
},
"ports": [
{
"port_id": "out",
"label": "Hash",
"description": "Hashed string",
"is_default": true,
"supports_condition": true
},
{
"port_id": "error",
"label": "Error",
"description": "Hash failed",
"is_default": false,
"supports_condition": false
}
],
"execution_mode": "sync",
"required_resources": [],
"compatible_worker_pools": [
"standard"
],
"tags": [
"crypto",
"security"
],
"is_stateful": false,
"publisher": {
"identity": "org_veripass",
"profile": {
"name": "Veripass",
"verified": true,
"url": "https://me.veripass.com/veripass",
"logo_url": null
}
}
}{
"type": "object",
"properties": {
"data": {
"description": "Data to hash (objects are JSON-serialized)"
},
"algorithm": {
"type": "string",
"default": "sha256",
"enum": [
"sha256",
"sha384",
"sha512"
]
}
},
"required": [
"data"
]
}{
"type": "object",
"properties": {
"data": {},
"algorithm": {
"type": "string"
}
},
"required": [
"data"
]
}{
"type": "object",
"properties": {
"hash": {
"type": "string"
}
}
}[
{
"port_id": "out",
"label": "Hash",
"description": "Hashed string",
"is_default": true,
"supports_condition": true
},
{
"port_id": "error",
"label": "Error",
"description": "Hash failed",
"is_default": false,
"supports_condition": false
}
]Execution
- Execution
sync- Stateful
- No
- Capabilities
cryptohash- Tags
cryptosecurity
Notes and limits
- The digest is unkeyed: the same input always gives the same hash, which makes it suitable for equality checks and pseudonymous keys.
- Leaving through
errordoes not fail the run: the engine follows the edges wired toerror, and if there are none the branch simply ends.
Reviewed against the orchestrator code · 31e874b · 2026-11-26