I don't see why it would be necessary to provide a name and a size. If the hash is the same, we can be pretty sure that's the same file.
I don't see why it would be necessary to provide a name and a size. If the hash is the same, we can be pretty sure that's the same file.
Generating two files where their hashes collide is extremely difficult. Generating two files where their hashes collide at the same size is near impossible, even after you break the hash function itself (e.g. with MD5 it requires much more compute power to generate two files with matching hashes and sizes than just hashes alone, since you're effectively looking for a subset of all collisions).
If safety were an argument you'd add an extra, unrelated hash function. E.g. even md5 is likely much harder to break if you also have the CRC32, even though CRC is a thoroughly insecure hash (and of course, you wouldn't use an insecure hash, now would you?)