Give every file a fingerprint you can check.
Calculate a SHA-256 fingerprint and compare it with a trusted checksum.