An implementation of a checksum varies, however its goal is always the same: To determine if data has been transported without errors or not.
To show the the basic idea of a checksum, i've written a...