Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.
Trending News
Hashing explained in an EASY to understand way?
There is not a single site or definition that I can understand! Please explain it to me in a metaphor or in terms that I can relate to (I am not a computer wizard.) so that I may learn.
Let me tell you what I know so you can see how confused and wrong I am and that you may correct me or let me know if I'm on the right track?:
Hashing is an encoding process for groups of data for security so that others may not locate information without the hash key??????
I know not what I say. Forgive me oh wise wizards of the web.
4 Answers
- husoskiLv 77 years agoFavorite Answer
The basic idea of a hash is simple. It's a function applied to some sort of data structure that takes the contents of the data structure and computes a number.
The "hash" comes from the food sense of the word...mixed up leftovers made into a a meal. A hash function "mixes up the bits" in some fashion to arrive at a single number that has no apparent relation to the original input bits.
Cryptographic hashes tend to be very large numbers (hundreds of bits) with a vanishingly low probability of random collisions (two different inputs producing the same hash result) and a requirement that there be no way to determine any input bits from just looking at the hash result (even if "metadata" about the input like the input length were known), and that it be computationally impractical to generate an input that produces a particular hash result.
Hash codes used in associative arrays aren't so picky. They want a more or less even distribution of output codes over the anticipated set of possible inputs, plus a low probability of collisions.
- 7 years ago
Hashing is similar to a mapping function. You map some values to some other so that you secure them, or reduce their size, search easily and many more. There are a lot of hashing algorithms depending on the usage. You can search for simple hash algorithms and try to understand them. Hope this link helps you a little:
- ?Lv 77 years ago
Let me give you an example of simple hash function that generates a 32-bit code.
Set the 32 RESULT bits to zero.
- START -
Read one byte of the file into HOLD. If the end-of-file has been reached, we're done — display RESULT and exit.
Left-shift RESULT by one. If a carry out of bit-31 occurred, flip bit-0.
XOR the low byte of RESULT with HOLD.
Go to START.