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
How do I place a stop-loss order?
Radioactive Fallout From Nuclear Weapons Testing | US EPA
The Tribes and Castes of the Central Provinces of India, Volume 3
Funny Roblox Id Codes 2023
Victor Spizzirri Linkedin
Www.1Tamilmv.cafe
Coverage of the introduction of the Water (Special Measures) Bill
Eric Rohan Justin Obituary
Crossed Eyes (Strabismus): Symptoms, Causes, and Diagnosis
Mikayla Campino Video Twitter: Unveiling the Viral Sensation and Its Impact on Social Media
LA Times Studios Partners With ABC News on Randall Emmett Doc Amid #Scandoval Controversy
Best Pawn Shops Near Me
South Bend Tribune Online
Wisconsin Women's Volleyball Team Leaked Pictures
Best Suv In 2010
Lonesome Valley Barber
Christina Steele And Nathaniel Hadley Novel
Mega Personal St Louis
The Largest Banks - ​​How to Transfer Money With Only Card Number and CVV (2024)
Yosemite Sam Hood Ornament
Thick Ebony Trans
Weve Got You Surrounded Meme
Bellin Patient Portal
Stihl Dealer Albuquerque
Why Are Fuel Leaks A Problem Aceable
Breckiehill Shower Cucumber
Mineral Wells Skyward
Ltg Speech Copy Paste
Ficoforum
3569 Vineyard Ave NE, Grand Rapids, MI 49525 - MLS 24048144 - Coldwell Banker
Craigslist Fort Smith Ar Personals
8002905511
Albertville Memorial Funeral Home Obituaries
Greyson Alexander Thorn
49S Results Coral
Planned re-opening of Interchange welcomed - but questions still remain
Abga Gestation Calculator
Lehpiht Shop
Ducky Mcshweeney's Reviews
Truckers Report Forums
Albertville Memorial Funeral Home Obituaries
Vocabulary Workshop Level B Unit 13 Choosing The Right Word
Wait List Texas Roadhouse
Registrar Lls
Coroner Photos Timothy Treadwell
6576771660
Copd Active Learning Template
SF bay area cars & trucks "chevrolet 50" - craigslist
Game Like Tales Of Androgyny
Read Love in Orbit - Chapter 2 - Page 974 | MangaBuddy
Jesus Calling Oct 6
Volstate Portal
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.