How Does Hashing Work? (2024)

How does hashing work?

In the previous lesson, I introduced the concept of hashing and relevant terms. Now, let’s learn how it works!

Hashing is a mathematical operation that is easy to perform, but extremely difficult to reverse.

The hashing process turns a piece of data into binary code, which is just a bunch of 0s and 1s.

Then it breaks up the numbers and applies some secret “jumbling”, which is done by something called the “hash function”.

How does hashing work in crypto?

When used in Bitcoin and other cryptocurrencies, the end result is typically a 64-digit long string of numbers and letters.

Because the conversion is done by a cryptographic algorithm (the “hash function”), the jumbling formula is unknown so the 64-digit string can’t be reversed.

How Does Hashing Work? (1)

A string is a sequence of characters.

Strings are like sentences. They are formed by a combination of characters.

How Does Hashing Work? (2)

Think of a hash as a bunch of random letters and numbers.

A unique piece of data will always produce the same hash.

For example, every time the string above is run through the hash function, it will always produce the same hash.

But what happens if we make just a tiny change to the string? (Highlighted in yellow.)

How Does Hashing Work? (3)

The sentence ends with a question mark instead of a period.

Even though it was a TINY change in the sentence, the hash is TOTALLY different.

You can see how using hashes can be used to detect tampering since even a small change to that input to the hash function results in a totally different output.

It’s very important you remember this point because, in a later lesson, you’ll see how this is used to prevent previous transactions from being tampered with.

The hash function is ONE-WAY only.

How Does Hashing Work? (4)

You can’t take an existing hash and try to reverse it to find the input string.

So if all you know is the hash, there’s no way to know what the original input is. You can’t “reverse engineer” or hack the hash.

Lastly, the length of the output (the “hash”) does NOT grow with an increase in information in the input. A hash function takes input data of ANY length and returns a value that has a FIXED length.

How Does Hashing Work? (5)

If you put the entire text of a Harry Potter book, which has over 76,000 words, the hash output will STILL only be 64 characters long.

And again, if you misspell even a single letter in the Harry Potter book, and ran it through the hash function, it would produce a totally different hash from above.

This would allow you to instantly know that the book had been modified without you having to manually inspect the entire book! Pretty neat huh?

How Does Hashing Work? (2024)
Top Articles
BlackRock Total Return Fund Bla dividends
8 Best Automated Options Trading Strategies • Benzinga
Exclusive: Baby Alien Fan Bus Leaked - Get the Inside Scoop! - Nick Lachey
Mcoc Immunity Chart July 2022
Autobell Car Wash Hickory Reviews
Bloxburg Image Ids
Mail Healthcare Uiowa
Osrs But Damage
ds. J.C. van Trigt - Lukas 23:42-43 - Preekaantekeningen
Pwc Transparency Report
Crusader Kings 3 Workshop
Edible Arrangements Keller
Https //Advanceautoparts.4Myrebate.com
Wordle auf Deutsch - Wordle mit Deutschen Wörtern Spielen
Jackson Stevens Global
7 Fly Traps For Effective Pest Control
Simplify: r^4+r^3-7r^2-r+6=0 Tiger Algebra Solver
Kürtçe Doğum Günü Sözleri
Po Box 35691 Canton Oh
Farmer's Almanac 2 Month Free Forecast
Breckie Hill Mega Link
Pokemon Unbound Shiny Stone Location
How Long After Dayquil Can I Take Benadryl
Caring Hearts For Canines Aberdeen Nc
Defending The Broken Isles
Spiritual Meaning Of Snake Tattoo: Healing And Rebirth!
Divina Rapsing
Soul Eater Resonance Wavelength Tier List
Garden Grove Classlink
NV Energy issues outage watch for South Carson City, Genoa and Glenbrook
How To Improve Your Pilates C-Curve
Nurofen 400mg Tabletten (24 stuks) | De Online Drogist
Otis Offender Michigan
Que Si Que Si Que No Que No Lyrics
Http://N14.Ultipro.com
Rvtrader Com Florida
Marine Forecast Sandy Hook To Manasquan Inlet
Selfservice Bright Lending
Unity Webgl Player Drift Hunters
Hannibal Mo Craigslist Pets
How To Get Soul Reaper Knife In Critical Legends
Dying Light Nexus
Zasilacz Dell G3 15 3579
Aita For Announcing My Pregnancy At My Sil Wedding
Citibank Branch Locations In North Carolina
What to Do at The 2024 Charlotte International Arts Festival | Queen City Nerve
Bekkenpijn: oorzaken en symptomen van pijn in het bekken
Hawkview Retreat Pa Cost
Rescare Training Online
Sam's Club Gas Price Sioux City
Puss In Boots: The Last Wish Showtimes Near Valdosta Cinemas
Mkvcinemas Movies Free Download
Latest Posts
Article information

Author: Jerrold Considine

Last Updated:

Views: 6065

Rating: 4.8 / 5 (58 voted)

Reviews: 89% of readers found this page helpful

Author information

Name: Jerrold Considine

Birthday: 1993-11-03

Address: Suite 447 3463 Marybelle Circles, New Marlin, AL 20765

Phone: +5816749283868

Job: Sales Executive

Hobby: Air sports, Sand art, Electronics, LARPing, Baseball, Book restoration, Puzzles

Introduction: My name is Jerrold Considine, I am a combative, cheerful, encouraging, happy, enthusiastic, funny, kind person who loves writing and wants to share my knowledge and understanding with you.