Loading…

C program calculates checksums

To ensure data integrity, it is wise to frequently calculate file checksums. A C program is presented which calculates the checksum of a file using a 16-bit CRC (cyclic redundancy check). The program assumes an 8-bit byte size. The routine reads the file as binary and processes one byte at a time.

Saved in:
Bibliographic Details
Published in:EDN 2001-02, Vol.46 (4), p.150-152
Main Author: Levine, Ken
Format: Magazinearticle
Language:English
Subjects:
Online Access:Get full text
Tags: Add Tag
No Tags, Be the first to tag this record!
Description
Summary:To ensure data integrity, it is wise to frequently calculate file checksums. A C program is presented which calculates the checksum of a file using a 16-bit CRC (cyclic redundancy check). The program assumes an 8-bit byte size. The routine reads the file as binary and processes one byte at a time.
ISSN:0012-7515
2163-4084