Buy Event Ticket Consensus MIami 2026 - 20% Paris Blockchain Week - 15% OFF

What is Hash (Cryptographic Hash)

A cryptographic hash is a mathematical function that takes any input data  a word, a document, an entire blockchain block  and produces a fixed-length output called a hash digest or simply a hash. Hash functions are the fundamental cryptographic building block securing every blockchain in existence.

THE PROPERTIES OF CRYPTOGRAPHIC HASH FUNCTIONS

  • Deterministic: The same input always produces the exact same output hash. Verify any data by re-hashing and comparing. 

  • Fixed Output Length: Regardless of input size  whether one byte or one terabyte  the output is always the same length. SHA-256 always outputs exactly 256 bits (64 hexadecimal characters). 

  • Avalanche Effect: A single character change in the input completely and unpredictably changes the entire output hash. There is no similarity between the hash of "Hello" and "hello"  they look completely unrelated. 

  • One-Way (Pre-image Resistance): It is computationally infeasible to reverse a hash back to its original input. Given a hash output, you cannot reconstruct the input without brute-force guessing every possibility. 

  • Collision Resistance: It is computationally infeasible to find two different inputs that produce the same hash output.

HASH FUNCTIONS USED IN BLOCKCHAIN

  • SHA-256 (Secure Hash Algorithm 256): Used by Bitcoin for block hashing and proof-of-work mining. SHA-256 produces a 256-bit (32-byte) hash. Mining Bitcoin requires finding an input that produces a SHA-256 hash below a target value  requiring trillions of attempts.

  • Keccak-256: Used by Ethereum. Similar security properties to SHA-256 but with different internal construction. All Ethereum addresses are derived from Keccak-256 hashes of public keys.

HOW HASHES CHAIN BLOCKS

Each block contains the hash of the previous block in its header. This creates the "chain" in blockchain: changing any transaction in any historical block would change that block's hash, which would invalidate the next block's reference to it, cascading invalidation forward through every subsequent block. The chain provides immutability through this hash linkage.

Terms in addition to the Hash (Cryptographic Hash)

Scroll to Top