FluxyAPIFluxyAPI
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

FieldRequiredDescription
ValueThe text string you want to hash (e.g., a password or email). Supports variables.
Hash AlgorithmChoose the hashing method: SHA-256, SHA-512, or Blake2b.
Hashed VariableThe 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:

  1. Value: Set to {request.body.email}.
  2. Algorithm: Select SHA-256.
  3. Hashed Variable: Enter email_hash.
  4. Result: The variable {email_hash} now contains a value like e3b0c442....

You can now compare {email_hash} against a list of pre-hashed blacklisted emails.

On this page