Hash
Intermediateالهاش
Also known as: Hash Value, Hash Function, Digest, Digital Fingerprint
Last updated
Definition reviewed before publishing
Our content team writes and reviews every definition before it is published, and revisits it when the way a term is used in the markets changes. The date shows the latest change to this term.
Last updated on 25 November 2026
A hash is the output of a mathematical function that turns any data, whatever its size, into a fixed-length string of letters and numbers that acts as the data's digital fingerprint. Hashes are a cornerstone of blockchain security, since blocks are linked by them and transactions are identified by them.
Quick summary
• A fixed-length digital fingerprint of any data. • A tiny change in the input changes the whole hash. • Links blocks, identifies transactions and underpins mining.
How it works
A hash function takes an input such as a text, a file or a transaction and produces an output of a set length. SHA-256, the function used by the Bitcoin network, always produces 256 bits, written as 64 hexadecimal characters. A good hash function has a few key properties: the same input always gives the same output, the input cannot practically be worked out from the output, changing even one character produces a completely different hash, and finding two inputs with the same hash is close to impossible. In a blockchain, each block carries the hash of the previous block, so editing an old transaction changes its hash and breaks every link after it, which makes tampering obvious. Under proof of work, miners try millions of values for a number called the nonce until they find a block header hash below a target set by the network. The transaction ID you search for in a block explorer is also a hash.
Example
A hypothetical miner needs a hash that starts with four hexadecimal zeros. Each attempt has a 1 in 65,536 chance of success (16 × 16 × 16 × 16), so a machine running 1,000 attempts per second needs about 65.5 seconds on average (65,536 ÷ 1,000). If the network requires a fifth zero, the average rises to about 1,049 seconds (1,048,576 ÷ 1,000), which is what a rise in difficulty means.
Where you will see it
In block explorers, on withdrawal and deposit receipts at crypto exchanges, and in news about hash rate and mining difficulty.
Why it matters
Hashes explain why a blockchain's record is so hard to forge and what a rising hash rate means for network security. They also help in practice: when a transfer is delayed, searching for its transaction hash in a block explorer shows its status and number of confirmations.
How it is calculated
Hash = hash function (input). In Bitcoin: block header hash = SHA-256 (SHA-256 (block header)), and a block is accepted if the hash is below the target. Average number of attempts = 16 raised to the number of required hexadecimal zeros.
How it differs from similar terms
• Hash rate: the speed at which a network or miner produces hashes, while a hash is the single output itself. • Encryption: a reversible process that recovers data with a key, while hashing is one-way and the input cannot be recovered. • Private key: a secret number that controls the funds and must never be shared, while a hash is public data that can be published.
Common mistakes
Confusing hashing with encryption, or thinking that a hash reveals a transaction's content or its owner's details. A hash is a one-way fingerprint that cannot be decoded; transaction details are visible in a block explorer because the blockchain is public, not because the hash can be reversed.