100% Clientseitige Berechnung • Keine Server-Logs • Sofortige Ausführung
Curious TechieEntwickler-Toolbox
Cryptography & CiphersFIPS PUB 180-4 (SHA-2) / FIPS PUB 202 (SHA-3)Verified Terminology

Cryptographic Hash Function

Direkte Antwort

A deterministic mathematical algorithm that maps arbitrary-length binary inputs to a unique, fixed-size output string (digest) with pre-image resistance and collision resistance.

Entity Relationships (GEO Conceptual Hierarchy)

Taxonomy Model
Relational Knowledge Graph Sequence
Cryptographic Hash Function→
deterministic mathematical mapping→
arbitrary input byte stream→
fixed-size digest output→
one-way pre-image resistance→
cryptographic integrity verification
Cryptographic Hash Function
•>deterministic mathematical mapping
•>arbitrary input byte stream
•>fixed-size digest output
•>one-way pre-image resistance
•>cryptographic integrity verification

Technical Explanation & Operational Mechanics

A cryptographic hash function is strictly one-way: given a digest h, it is computationally infeasible to invert the function and discover the original message m (pre-image resistance). Furthermore, it is computationally infeasible to find any two distinct messages that produce the exact same digest (collision resistance). Common modern algorithms include SHA-256 and BLAKE3. Hash functions are foundational to digital signatures, password verification (when combined with slow key-derivation functions), subresource integrity checks (SRI), and distributed version control.

Technical Example & Practical Implementation

Fixed-Length Output of SHA-256

Inputs of wildly different lengths always produce exactly 256 bits (64 hexadecimal characters)

async function computeSHA256(text) {
  const encoder = new TextEncoder();
  const data = encoder.encode(text);
  const hashBuffer = await crypto.subtle.digest('SHA-256', data);
  const hashArray = Array.from(new Uint8Array(hashBuffer));
  return hashArray.map(b => b.toString(16).padStart(2, '0')).join('');
}

// Input 1: "Hi" (2 bytes)
// Output:  e31a196... (64 hex characters)

// Input 2: Complete encyclopedia (100 Megabytes)
// Output:  7a812cf... (Exactly 64 hex characters)