Skip to main content

What is Hashing?

Hashing is a privacy protection method that replaces sensitive data with deterministic hash values. The same input always produces the same hash, making it perfect for analytics and user tracking without storing actual PII. Example:

How It Works

  1. Detection: Blindfold identifies sensitive entities in your text
  2. Hashing: Each entity is hashed using SHA-256, MD5, or other algorithms
  3. Prefix Addition: Optional prefix (e.g., ID_, USER_) is added
  4. Deterministic: Same value always produces the same hash

When to Use Hashing

Hashing is ideal when you need to:

1. Analytics Without PII

Track user behavior without storing email addresses or names.
Why this matters:
  • Same user has same ID across all events
  • No PII in analytics database
  • Can still calculate user-level metrics

2. User Tracking Across Systems

Create consistent user identifiers without sharing PII between systems.
Use cases:
  • Multi-platform tracking
  • Cross-service analytics
  • Data sharing between departments

3. Data Matching Without Exposure

Match records across databases without exposing the matching key.

4. Compliance-Friendly User IDs

Create pseudonymous identifiers that comply with GDPR and privacy regulations.

When NOT to Use Hashing

Hashing is not suitable when:

1. You Need to Restore Original Data

Hashing is one-way. Use Tokenization instead.

2. Users Need to Recognize Data

If users need to identify their own information, use Masking.

3. Hashes Could Be Rainbow-Attacked

Don’t hash easily guessable values without salt.

Key Features

Deterministic

Same input always produces same hash

One-Way

Cannot reverse hash to get original

Multiple Algorithms

MD5, SHA-1, SHA-256, SHA-384, SHA-512

Customizable

Choose prefix and hash length

Quick Start

Configuration Options

Hash Algorithm

Choose from multiple hashing algorithms:
Algorithm Comparison:

Hash Prefix

Add a prefix to identify hash type:

Hash Length

Control how much of the hash to use:
Shorter hashes are easier to work with but have higher collision risk. Use at least 16 characters for production.

Filter Entity Types

Only hash specific types of data:

Common Patterns

User Tracking in Analytics

Cross-Platform User Matching

Pseudonymous Database IDs

Common Use Cases

Track users without storing email or names:
Benefits: User-level analytics without PII, GDPR compliant
Assign users to test groups consistently:
Benefits: Consistent variants, no PII stored, reproducible
Share data between teams without exposing PII:
Benefits: Data sharing without PII exposure, compliance maintained
Find duplicates without comparing raw data:
Benefits: Duplicate detection without storing PII

Best Practices

1. Use Strong Algorithms

Prefer SHA-256 or higher for security:

2. Use Consistent Parameters

Keep hash parameters consistent across your application:

3. Document Your Hashing Strategy

Clearly document what gets hashed and how:

4. Consider Rainbow Table Attacks

For highly sensitive data, add application-level salt:

Security Considerations

Important hashing considerations:
  • One-way only: Cannot reverse hash to original
  • Rainbow tables: Simple values can be brute-forced
  • Collision risk: Shorter hashes have higher collision risk
  • Algorithm choice: Use SHA-256 or higher for sensitive data
  • Not encryption: Hashing is not the same as encryption

Learn More

Python SDK

Full Python SDK documentation

JavaScript SDK

Complete JavaScript guide

Java SDK

Sync and async Java client

REST API

HTTP API reference for /hash

Examples

Practical integration examples

Compare with Other Methods

Tokenization

Reversible replacement (restore later)

Masking

Partial visibility for users

Redaction

Complete permanent removal

Encryption

Reversible with encryption key