GerbilSoft / rom-properties

ROM Properties Page shell extension
GNU General Public License v2.0
459 stars 35 forks source link

Feature Request: Calculate checksum on Boot Filename (universal?) #228

Open ehw opened 4 years ago

ehw commented 4 years ago

This is an idea that would be great to have especially when authenticating prototype dumps. There is currently no database that contains checksums for the boot executable of every game, but we could use the checksum of the executable itself to determine if the file is different in comparison to a similar game or version. Timestamps are too easily faked, and early CD based prototypes are sometimes unreliable when it comes to using this to determine if the game is a unique build.

This would be most useful in determining the hash value of each executable in a collection or set of disc images, such as a Redump set to compare prototypes to. Since rom-properties can determine the default boot file for a few disc formats, this would make the process much more straight forward.

No real preference to the checksum itself. CRC32 has potential flaws, so maybe md5 or sha1 would be preferred.

mariomadproductions commented 4 years ago

CRC32 is pretty easily faked, so definitely don't use that. MD5 and SHA1 are okay, but SHA256 is better. Also, wouldn't it be better to hash all the files in the filesystem - not just the exe?

ehw commented 4 years ago

It would, but since rom-properties currently looks at the ISO-9660 PVD and the boot executable when displaying within the Windows shell or from command line, it makes sense to provide info on the executable as well since rom-properties already provides a lot of info on it already.