Today's Study(Hash Function)steemCreated with Sketch.

in Steem Japan2 years ago

Hi, Everyone. This is @neko9!
Today we will study the "hash method.

This method uses a "hash function" to identify the storage address of data.
What is a "hash function"? If you are wondering, let's look at an example first.

image.png

The same flow is used to find "12" using the hashing method.
Very simple, if you look at the example!

However, there is a problem with this method.
For example, let's look at the case of storing "22".

image.png

Yes, the address would be covered!
This is called "collision" or "synonym occurrence".

Rest assured, there is a solution!
Let's look at two examples.

①Open Address Method
 
image.png

This is a method of re-hashing when the hash value obtained by the hash function has already been used.

②Chain Method

image.png

This is a method of connecting hash values obtained by a hash function as a concatenated list when the hash value has already been used.

How was it?
I like the chain method because it is clear.

See you in the next Today's Study!

Sort:  

Very interesting indeed! Is this function used for encryption?

Since hashing is irreversible and encryption is reversible, it is safe to assume that encryption is used for sending and receiving data and hashing is used for storing passwords.

 2 years ago 


@neko9 さん、こんにちは。
@japansteemitがこの記事をアップボートしました。

tomoyan.witnessに投票お願いします👇

https://steemitwallet.com/~witnesses

💡 アップボートガイド 💡

分からない事は何でも質問して下さい🙇

Coin Marketplace

STEEM 0.16
TRX 0.16
JST 0.030
BTC 59488.68
ETH 2538.17
USDT 1.00
SBD 2.52