What is the point of providing an MD5 or SHA1 hash along with a downloadable executable?

I thought they were there for security; to verify that the file has not been modified. But, of course, if someone is able to modify the file, then they can also modify the page using a hash!

What security does he really offer?

+3
source share
7 answers

They are usually there to ensure a complete and correct download.

, : , . "" , "" , , , .

+4

, .

. apache.org , . . MD5: apache.org, .

+4

. , , , , .

+2

, .
, , , , CD/DVD, , , , .

+2

MD5 , , ISO Linux.

0

, MD5 SHA1 . MAC HMAC. .

0

the right way to do this is to provide hashes on a web server that lists all the files and their hashes. the connection to the server must be behind SSL / TLS to ensure that the server is the correct server and not an imposter.

in short - save hashes out of band from files.

0
source

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


All Articles