crc

Programming related discussions related to game research
mxzxz1991
Posts: 9
Joined: Sat Sep 14, 2019 4:20 pm

crc

Post by mxzxz1991 »

<file url="Screenshots\\readme.txt" crc="1258410340" size="54" high="0"></file>
where can I find this (crc) 10 digit file code? I would like to assign the same crc to another file
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: crc

Post by aluigi »

Upload that file Screenshots\\readme.txt so we can check what algorithm and settings are used to calculate that crc
mxzxz1991
Posts: 9
Joined: Sat Sep 14, 2019 4:20 pm

Re: crc

Post by mxzxz1991 »

file
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: crc

Post by aluigi »

Bingo, it's just the classical FCS32 checksum.
This script for quickbms can show you this value for all the files you select:

Code: Select all

get SIZE asize
encryption crc 0xedb88320 "32 -1 -1 0 0 1"
log MEMORY_FILE 0 SIZE
get NAME filename
print "%QUICKBMS_CRC% %NAME%"
Example:
1258410340 readme.txt
mxzxz1991
Posts: 9
Joined: Sat Sep 14, 2019 4:20 pm

Re: crc

Post by mxzxz1991 »

can it be changed?
I would like to give the same to another file (1258410340)
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: crc

Post by aluigi »

If you can edit the crc field in that configuration file it would be a lot easier.

Anyway crc collisions are possible so you may have some chance but it's not so easy and requires some skills (I can't help you so don't ask).