Cryptographic Hash
Computes cryptographic hash (SHA-2, SHA-3, BLAKE3)
Overview
Computes a cryptographic message digest over an arbitrary-length input byte array using one of 12 industry-standard hash functions spanning the NIST SHA-2 family (FIPS 180-4), NIST SHA-3 & Keccak family (FIPS 202), BLAKE2/BLAKE3 (RFC 7693), and legacy digests (RIPEMD-160, SHA-1, MD5).
The node is deterministic and stateless: identical input bytes always produce the exact same fixed-length digest.
When to Use
- Computing message digests before raw/manual digital signature schemes (such as Asymmetric Padding in PSS mode or ECC Sign with pre-hashing disabled).
- Deriving content fingerprints, Merkle tree nodes, Bitcoin/Ethereum address hashes (
RIPEMD-160,Keccak-256), or integrity checksums.
Parameter Configuration
| Parameter (ID) | Type & Default | Visibility Condition | Description & Options |
|---|---|---|---|
Hash Algorithmalgorithm |
selectDefault: SHA-256 |
Always visible | Selects the cryptographic hash algorithm and output digest size: SHA-256 (32B), SHA-384 (48B), SHA-512 (64B), SHA-224 (28B), SHA3-256 (32B), SHA3-512 (64B), Keccak-256 (32B Ethereum pre-FIPS padding), BLAKE2b (64B), BLAKE2s (32B), BLAKE3 (32B), RIPEMD-160 (20B), MD5 (16B legacy), or SHA-1 (20B legacy).
|
Port I/O Specification
See Ports & Connections for general wiring rules, data type colors, and dynamic port creation.
Input Ports
Port Nature: Fixed Input Ports (1 total).
| Port Name | Port ID | Data Type | Required | Visibility Condition | Description |
|---|---|---|---|---|---|
Data |
data |
Bytes |
Required | Always visible | Input message bytes (Uint8Array) to hash. |
Output Ports
Port Nature: Fixed Output Ports (1 total).
| Port Name | Port ID | Data Type | Visibility Condition | Description |
|---|---|---|---|---|
Digest |
digest |
Bytes |
Always visible | Computed fixed-length cryptographic hash digest (Uint8Array). |
Error Cases
This node has no runtime failure cases (errorProfile: none) and always succeeds for any valid typed input.
Examples
Computing an Ethereum Keccak-256 Hash
Hash a byte payload using Keccak-256.
- Connect your input bytes to
Dataand selectKeccak-256 (Ethereum)in Hash Algorithm. - The
Digestoutput port emits the 32-byte Keccak-256 hash.