What is a hash
Hash is the output of a cryptographic function that converts input data into a fixed-length string.
In simple terms, a hash is a unique “fingerprint” of data. Even a small change in the input produces a completely different hash.
Hash functions are fundamental to blockchain technology and are used to secure data and link blocks together. A more detailed explanation of hashing and its role in mining is available in the hashing and mining guide.
How hashing works
A hash function takes input data of any size and transforms it into a fixed-length string.
Key property: a small change in input produces a completely different hash.
This makes hashing useful for verifying data integrity.
Hash example
For example:
hello → 2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824
hello! → ce06092fb948d9ffac7d1a376e404b26b7575bcc11ee05a4615fef4fec3a308b
Hashing vs encryption
Hashing is different from encryption:
- hashes cannot be reversed into original data
- encrypted data can be decrypted with a key
Hash functions are designed to be one-way.
Where hashes are used
Hashes are used in:
- blockchain
- Proof of Work
- digital signatures
- security systems
In blockchain, hashes link blocks together and ensure data integrity.
Learn more about hashing
A detailed explanation of hashing and its role in mining can be found here:
Related terms
FAQ
What is a hash in simple terms?
A hash is a unique string that represents data and changes when the data changes.
Can you reverse a hash?
No. Cryptographic hash functions are one-way.
Why is hashing important in blockchain?
It links blocks together and protects data from tampering.