BlocksTokens & Crypto
Hash String
Create a secure, irreversible fingerprint from a text string.
The Hash String block converts any text into a unique, fixed-length "fingerprint" called a hash. Hashing is deterministic (same input = same output) but irreversible.
Core Concept: The One-Way Fingerprint
Think of a hash like a digital fingerprint.
- One-Way: You can turn text into a hash, but you can never turn a hash back into the original text.
- Unique: Changing even a single letter in your text will result in a completely different hash.
- Deterministic: The same text will always produce the same hash using the same algorithm.
Irreversible Process
Hashing is not encryption. There is no "key" to unlock a hash. It is designed to be one-way only.
Configuration
| Field | Required | Description |
|---|---|---|
| Value | ✅ | The text string you want to hash (e.g., a password or email). Supports variables. |
| Hash Algorithm | ✅ | Choose the hashing method: SHA-256, SHA-512, or Blake2b. |
| Hashed Variable | ✅ | The name of the variable that will store the resulting hex string. |
Error Handling
HASH_INPUT_MISSING— Triggered when the Value field is empty or invalid.HASH_VAR_MISSING— Triggered when the Hashed Variable name is not provided.HASH_ALGO_INVALID— Triggered if the selected algorithm is not supported.HASH_RUNTIME_ERROR— Triggered if an unexpected error occurs.
Example: Secure Email Comparison
If you want to check if a user is on a blacklist without storing their actual email address:
- Value: Set to
{request.body.email}. - Algorithm: Select
SHA-256. - Hashed Variable: Enter
email_hash. - Result: The variable
{email_hash}now contains a value likee3b0c442....
You can now compare {email_hash} against a list of pre-hashed blacklisted emails.
