Hash
Last Updated: November 19, 2026
A hash, also called a digest or hash value, is the fixed-length string that a hash function produces from any input, such as a transaction or a block. It works like a fingerprint for data on a blockchain: the same input always gives the same hash, and any change gives a completely different one.
What a Hash Looks Like
Most crypto hashes are shown as hexadecimal text, which uses the digits 0 to 9 and the letters a to f. A SHA-256 hash is 256 bits long, or 64 hex characters, whatever the size of the input. A one-word message and a 4 GB file both produce exactly 64 characters.
Here is a simple test, run with SHA-256 on November 16, 2026. The word “Blockchainreporter” hashes to 2bed8bb3…548d679e. Change only the first letter to lowercase and the result becomes 1d1cde70…21adf1f9. The two outputs share no visible pattern, which is why a hash shows at once whether data has changed.
Hash vs Hashing
A hash is the result. Hashing is the process of running data through a hash function to get it. The function used in crypto must be a cryptographic hash function, which means nobody can work backward from the hash or find two inputs with the same output.
Where You See Hashes in Crypto
- Transaction IDs: Bitcoin names each transaction by its TXID, a double SHA-256 hash of the transaction data. Ethereum transaction hashes use Keccak-256.
- Block hashes: every block header is hashed, and the next block stores that hash, which links the chain together.
- Merkle roots: the transactions in a block are hashed in pairs up to one root hash, which sits in the block header.
- Addresses: many Bitcoin addresses contain a 160-bit hash of a public key, so the key itself stays hidden until the coins are spent.
Example: Bitcoin Block 976,170
According to mempool.space, block 976,170 was mined at 18:36 UTC on November 16, 2026. Its hash begins with 20 zeros: 00000000000000000000e109…be37858f. Bitcoin’s proof-of-work rules require a block hash below a target number, and a long run of leading zeros is what a very small number looks like in hex.
The same block header stores the hash of block 976,169, which also starts with 20 zeros, followed by eaf74b4c. Changing any old transaction would change that block’s hash and break every link after it. This is how hashes make a blockchain’s history tamper-evident.
Where to Check a Hash
Paste a transaction ID or block hash into a block explorer to see the matching record. mempool.space and Blockstream’s explorer cover Bitcoin, and Etherscan covers Ethereum. Our guide to using a Bitcoin explorer explains each field. To check a downloaded file, compare its SHA-256 hash with the one the publisher lists.
Limits
A hash is not encryption, and there is no key to turn it back into the input. It is also not unique in a strict sense. A hash function maps endless possible inputs to a fixed number of outputs, so different inputs with the same hash must exist. For a strong function like SHA-256, finding such a pair is not practical with any computer today.
Hashes of short or predictable inputs can still be guessed. Attackers hash common passwords and compare the results, which is why password systems add random data, called a salt, and use slow hash functions.
Common Hash Functions in Crypto
- SHA-256: used for Bitcoin blocks, transaction IDs and mining.
- Keccak-256: used by Ethereum for transaction hashes and addresses. It is close to, but not the same as, the official SHA-3 standard.
- RIPEMD-160: used together with SHA-256 to shorten public keys in many Bitcoin addresses.
- Scrypt: a memory-heavy function used for mining on Litecoin and Dogecoin.
- BLAKE2b: used inside Zcash’s Equihash proof of work.
- Poseidon: built to be cheap inside zero-knowledge proof systems, and used by several of them.
Check a File Hash Yourself
Wallet and node software often lists a SHA-256 hash next to each download. Users can compute the hash of the file they received and compare the two. A match means the file did not change on the way.
- macOS:
shasum -a 256 filename - Linux:
sha256sum filename - Windows:
certutil -hashfile filename SHA256
A hash check only proves the file matches the published hash. If an attacker controls the download page, they can change both. Signed releases, checked with the developer’s public key, add a second layer of trust.
Frequently Asked Questions
Is a hash the same as encryption?
No. Encryption scrambles data with a key so the right person can turn it back into the original. A hash has no key and cannot be reversed. It only proves that data has not changed. Blockchains use both tools: hashes link blocks and protect records, while digital signatures prove who approved a transaction.
What is a transaction hash?
A transaction hash, or TXID, is the unique ID of a blockchain transaction. On Bitcoin it is a double SHA-256 hash of the transaction data, and on Ethereum it is a Keccak-256 hash. Wallets and exchanges share it as proof of payment, and anyone can paste it into a block explorer to check the transfer.
Can two different inputs have the same hash?
In theory, yes, because there are far more possible inputs than outputs. Such a match is called a collision. NIST rates SHA-256 at 128 bits of collision resistance, far beyond what any computer can search today. Older functions are weaker: researchers showed a real SHA-1 collision in 2017, and NIST is now retiring SHA-1.
Why does Bitcoin hash data twice?
Bitcoin runs SHA-256 twice for block hashes and transaction IDs. Satoshi Nakamoto never explained the choice. A common view is that double hashing guards against a weakness called a length extension attack, which affects single SHA-256 in some uses. It costs little extra computing time, so the design has stayed in place since 2009.
Data sources: mempool.space (block 976,170 and block 976,169, read at 19:10 UTC, November 16, 2026); SHA-256 examples computed on November 16, 2026; NIST Computer Security Resource Center (hash function security strengths); Bitcoin Core source code (double SHA-256 transaction IDs).