Purpose or use of MD5

If we cannot decode the MD5 hash string, then what is the purpose of MD5, where we can use MD5.

+3
source share
6 answers

To save saving data in a database, for example.

If you save your password using md5 and you compare it with the password that you enter in the form and the hash file, this is still the same password, but you cannot see it in plain text in the database.

For instance:

password = 123  
md5(123) === "202cb962ac59075b964b07152d234b70"

123 , md5 - , . , ,

+9

, , , .

, , .

:

  • , . , .

  • , , , -, .

+5
  • , , (, ) , , (, ), . , " ?" . ( , , md5 , sha * bcrypt. md5, , .)

  • , md5 md5 . , , , ; , , .

+1

-, MD5, . . . , .

+1

MD5 , , - .

: , MD5 , , md5, mh5 hash , .

+1

MD5 -, , SHA, PBKDF, bcrypt scrypt. scrypt. - , , . , , - .

: 1) - , h (m). 2) m -, -. 3) m1, m2 .

In addition, it is important to know that hash algorithms are publicly available, and it is very easy to calculate the hash value of a message. In addition, hashes are "one-way" functions, which means that it is difficult to find a message given the message hash. Actual security is thus based on this property.

0
source

Source: https://habr.com/ru/post/1741239/


All Articles