Hash

Intermediate
Aktualisiert Jul 29, 2026

What Is a Hash?

A hash is the fixed-size output produced by a hash function after data is passed through it, often used to verify information.

In cryptography, a hash may also be called a hash value, hash code, or digest. It usually appears as a hexadecimal number, meaning a combination of digits (0 to 9) and letters (a to f).

How Hash Functions Work

Hash functions are mathematical algorithms that convert an input of any size into an output of fixed size. The same input always produces the same hash, but even a tiny change to the input produces a completely different result.

For example, if the word "Binance" is passed through the SHA-256 hash function, the output will be:

f1624fcc63b615ac0e95daf9ab78434ec2e8ffe402144dc631b055f711225191

Changing just the capitalization to "binance" produces an entirely different hash:

59bba357145ca539dcd1ac957abc1ec5833319ddcae7f5e8b5da0c36624784b2

This behavior makes hashes useful for confirming that data has not been altered, without needing to reveal the underlying data itself. If two hashes match, the original inputs are almost certainly identical, so a hash can act as a compact digital fingerprint of a much larger piece of data. Common use cases include database lookups, verifying large file downloads, storing passwords securely, and general data management.

A useful property of many hash functions is that they are deterministic and fast to compute in one direction, yet very hard to reverse. In other words, it is straightforward to turn an input into a hash, but generally impractical to work backward from a hash to recover the original input.

Why Hashes Matter in Blockchain

When combined with cryptographic techniques, hash functions become cryptographic hash functions. These are designed to be practically impossible to reverse, resistant to collisions (two different inputs producing the same hash), and highly sensitive to input changes. Together, these traits make them a core part of information security and most blockchain networks.

On the Bitcoin blockchain, for instance, many operations rely on hashing. Each block references the hash of the previous block, forming a chained structure where altering one block would change every hash that follows. This property is central to the process of mining and helps keep the network tamper-resistant.
Learn more: What Is Hashing?