You might have heard of Bitcoin hashing power, litecoin hashing power and many things about hashing. The more hashing power you have, the more amount you will earn at least in the world of cryptocurrency. Let’s dive into detail and understand What is hashing in Blockchain.

Hashing is the only thing that links the blocks in the blockchain. Each block contains the hash of the previous block and so on.

To understand in a bit of more details please refer to this video.

One more thing if you don’t understand what is Blockchain please refer to this URL What is Blockchain in Layman Langauge.

If you want to learn blockchain in very detail to become a blockchain developer or blockchain consultant you should refer this course link Blockchain Online Course.

## Let’s Understand What is Hashing in Blockchain

To understand hashing lets consider a small tool that helps to calculate the hash online for any given specific algorithm. URL of the tool is here https://www.tools4noobs.com/online_tools/hash/

Here we will select the algorithm sha256, the popular bitcoin algorithm.

Now here we enter “Hello World” , and you got the hash. Please make a not that for Hello World we got this hash.

Now we just add a dot to the hello world and click on hash this, well our hash has changed. Please see the image below, it will help you to understand what is hashing

Now we will write 200 character text and click on Get Hash, we got this hash.

## So here I needed to explain 3 things,

1. Even if you change a single character in the hash, the hash will change.
2. If you have 100 characters or 1000 characters the length of the hash will remain the same.
3. One more important part is hash is one way. If you convert a text into hash there is no way to convert back to the actual value.

These 3 properties make hashing a must-have a concept for blockchain

Well, here a lot of mathematical calculations are involved to calculate the hash.

We don’t into the mathematical formula but just try to understand that there are different types of algorithm to calculate the hash like sha256. Like Scrypt, X11, etc.

In the next section, I will explain what is Hashing in Blockchain

## Importance of Hashing mainly in Blockchain

When you do some transaction in Bitcoin or any other blockchain network, the data of block number 1 is hash and it’s added in the link section of the block number 2. When block number 3 is created hash of block number 2 is create and it’s stored in the link section of block number 3.

If someone tries to modify the block number 2, even the smallest modification will change the hash and the link will be destroyed. All the nodes will reject the data.

## Technical Definition for your Interview

If we define the hashing in Blockchain it will be like this “Hashing is a process which accepts a string of any length and converts them into encrypted data of fixed length using available algorithms”