By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,798 Members | 1,766 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,798 IT Pros & Developers. It's quick & easy.

how to calulate crc of an executable file

P: 52
how to calulate crc of an executable file
Jun 11 '07 #1
Share this Question
Share on Google+
3 Replies


Motoma
Expert 2.5K+
P: 3,235
how to calulate crc of an executable file
Use a tool?
If this does not help, please elaborate on what you want to accomplish.
Jun 11 '07 #2

P: 52
Use a tool?
If this does not help, please elaborate on what you want to accomplish.
I want to create my own tool to do this..
Jun 12 '07 #3

Motoma
Expert 2.5K+
P: 3,235
I want to create my own tool to do this..
Typically, the CRC algorithm takes a polynomial, changes that into a bitfield, and uses that bitfield to perform long-division/XORing on a binary file. The remainder, at the end of the process is your result. You can then test the validity of the binary file in two ways: perform the CRC again, and see if you get the same result, or append the original result to the file and perform the CRC to see if the remainder is 0.
Jun 12 '07 #4

Post your reply

Sign in to post your reply or Sign up for a free account.