I want to reduce a full folder path to its CRC32 fingerprint to differentiate it from other folders. Is there much risk of collision for this? I assume it would be safe, since zip files use CRC32 checksums for the files they contain.
Here's what I'm currently doing, and with just two characters transposed, it results in different checksums (which is correct). So it should be safe? I'll always be converting the folder path to lower case before ciphering it.
Code: Select all
UseCRC32Fingerprint()
Debug StringFingerprint(LCase("D:\Files\"),#PB_Cipher_CRC32) ; 04528791 (Original folder)
Debug StringFingerprint(LCase("D:\iFles\"),#PB_Cipher_CRC32) ; 7754a295 (Typo, so different)
Debug StringFingerprint(LCase("d:\files\"),#PB_Cipher_CRC32) ; 04528791 (Same as original)