A Tcl implementation of the cksum(1) command is now part of Tcllib. Documentation link

The cksum(1) command calculates a 32 bit checksum of the input data using a POSIX standard algorithm and so should give the same result across multiple platforms (unlike the sum command). The Tcllib version uses the same algorithm and has been checked against the GNU and BSD cksum(1) commands.

More information about the unix command can be found at or by referring to your system manual page.

For example:

% package require cksum
% crc::cksum "Hello, World!"
% crc::cksum -file cksum.tcl
% exec cksum cksum.tcl
871033703 6652 cksum.tcl

See the code at

See also