Skip to main content

How hash cryptography use in blockchain?

Hash cryptography is based on algorithm called SHA(Secure Hash Algorithm) which can be SHA-3,SHA-1,SHA-256 and many more.
Here I am briefing SHA-256 where the data is represented in hexadecimal form which is 64 characters long made up of numbers (0 to 9) and and alphabets (a to f) each 4 bits long.
Basically hash is like a fingerprint means unique.
For example:- a document with hash
    📄--> 0023a76bef63c568  
               67dc128a3fe60a7e
               d47b95a532b60a74
               a62e73f026d957a3
Some properties of hash are-
1- Avalanche effect:- the hash will change with even a single change in document.
2- Deterministic:- the document will always give the same hash.
3:- One way:- one can calculate hash of a document but document can't find using the hash.
4:- Withstand with collision:- no one can have the same hash even when they have the same document otherwise the originality of documents will be lost.

Comments