4 ms·
MD5 sums only verify that the binary you downloaded is not corrupted (in other words, the bits you got are the bits the server intended to send). This is not t
by pmiller2 15y ago
MD5 sums only verify that the binary you downloaded is not corrupted (in other words, the bits you got are the bits the server intended to send). This is not the same as cryptographically signing executables, since anybody can still replace the original file and md5sum with a malicious file and an md5sum for the malicious file. Cryptographic signatures can't be forged by technical means short of stealing someone's private key.
- mukyu 15y agoHis suggestion involved the operating system computing the md5 digest of the executable file before running it. In this case you would not be looking to see if it matches the digest that wherever you downloaded it from provided. There is no foo.md5sum for them to replace. This scheme is easily subverted many ways: by having the executable only being bad a few times, or much later than when the user could identify it as the source, or a collision attack against the hash function. Also note that digital signatures are only as strong as their components. It doesn't matter that you signed it if you use md5sum in the process of signing it. An attacker just needs a binary that has the same digest as the one the signature says it does, which results in attacks that completely ignore the bits that involve the asynchronous keys.