-=>Quoting Majed Alharbi to All <=-
MA>Hi all
MA>I've heard of CRC checking for file protection and many other
MA>things...
Well, I don't know about he 'many other things' aspect. But "CRC
checking" is a little redundant... [grin]
CRC means "Cyclic Redundancy Check."
MA>Could Anyone give me some explanations about it... How dose it work
CRC is very simple to implement. You can simply add up all the bytes
that are in a file, and append that value to the file. When recalling
the file, you simply do it again, but *comapre* the sum with the
stored value. It better match. If you use a 32-bit CRC, the chances
of an error getting by is small.
If you have a Internet account, look up "PowerBASIC on the web." The
have some 16 and 32-bit CRC source code. That may be what you are
looking for. If you dn't have an account, let us know. Someone surely
will post somethin'. [grin]
--- Maximus/2 3.01
---------------
* Origin: Madman BBS * Chico, California * 916-893-8079 * (1:119/88)
|