CRC(1) General Commands Manual CRC(1)NAME
crc - print the checksum of the file data
SYNOPSIS
crc file ...
EXAMPLES
crc *.c # Print checksums of all the C programs
DESCRIPTION
The checksum of each argument is computed and printed, along with the file length and its name, one file per line. This program is useful
for seeing if a file transmitted to another machine has arrived correctly. It is conceptually similar to sum, except that it uses a
stronger checksum algorithm and also prints the length.
SEE ALSO cksum(1), sum(1).
CRC(1)
Check Out this Related Man Page
crc32(n) Cyclic Redundancy Check (crc32) crc32(n)
NAME
crc32 - Perform a 32bit Cyclic Redundancy Check
SYNOPSIS
package require Tcl 8.2
package require crc32 ?1.0?
::crc::crc32 ?-format format? ?-seed value? ?-implementation procname? message
::crc::crc32 ?-format format? ?-seed value? ?-implementation procname? -filename file
DESCRIPTION
This package provides a Tcl-only implementation of the CRC-32 algorithm based upon information provided at http://www.naaccr.org/stan-
dard/crc32/document.html If the Trf package is available then the crc-zlib command is used to perform the calculation.
COMMANDS
::crc::crc32 ?-format format? ?-seed value? ?-implementation procname? message
::crc::crc32 ?-format format? ?-seed value? ?-implementation procname? -filename file
The command takes string data or a file name and returns a checksum value calculated using the CRC-32 algorithm. The result is for-
matted using the format(n) specifier provided or as an unsigned integer (%u) by default.
OPTIONS -filename name
Return a checksum for the file contents instead of for parameter data.
-format string
Return the checksum using an alternative format template.
-seed value
Select an alternative seed value for the CRC calculation. The default is 0xffffffff. This can be useful for calculating the CRC for
data structures without first converting the whole structure into a string. The CRC of the previous member can be used as the seed
for calculating the CRC of the next member.
Note that as the Trf command crc-zlib cannot accept a seed value, use of this option will force the use of the Tcl only implementa-
tion.
-implementation procname
This hook is provided to allow users to provide their own implementation (perhaps a C compiled extension) or to explicitly request
use of the Tcl only implementation when Trf is installed (by setting -implementation crc::Crc32_tcl. The procedure specfied is
called with two parameters. The first is the data to be checksummed and the second is the seed value. A 32bit integer is expected as
the result.
EXAMPLES
% crc::crc32 "Hello, World!"
3964322768
% crc::crc32 -format 0x%X "Hello, World!"
0xEC4AC3D0
% crc::crc32 -file crc32.tcl
483919716
SEE ALSO
sum(n), cksum(n)
AUTHORS
Pat Thoyts
KEYWORDS
cksum, checksum, crc, crc32, cyclic redundancy check, data integrity, security
crc 1.0 crc32(n)
there is a message crc error when i install rethat 7.1
what is these message means ?
And why is my harddisk drive detected as hdc not hda ??
please do reply if you have any idea or guesses .
thanking you all
systen config :
intel P4
intel 845
256 SD
... (1 Reply)
hello,
I have implemented a 32bit crc generation algorithm. Now at the receiver side i need to check the crc for that....i need to add the message in the packet and the crc and divide it with the key common at both side and the remainder should be zero.
now how to add crc which is hexadecimal... (4 Replies)
Hi, I was working on the M3000 and I did a init 0, powered off the system during the weekend. When I tried to poweron today, the XSCF linux boot image keeps on rebooting and does not go to the login for XSCF access. The "Check" LED is on amber. Tried diagnosing but cant get the system up. Any help... (1 Reply)
Hello!
For long I used cksum to find file duplicates in linux and darwin.
Now I want to make my own program that does all.
However I can't seem to find the correct algorithm.
zip and cksum claim to use the same algorithm, but the computated sums are not the same.
I've already written an... (4 Replies)
Is cksum the right command to calculate the crc32 checksum value? I tried it for a number of files now and every time the results dont match. So there is nothing wrong with the file. Also, cksum gives me an all numerical value while crc32 is alpha numeric. What am I doing wrong?
Thanks (9 Replies)
I would like to list all files in a directory tree but with a prepended digest hash code (like CRC32). CRC32 is not a MUST. If suitable another hash code can be used as well. In case of CRC32 the listing should look like
3765AC \usr\bin\spool
23CE99 \usr\bin\spool\list.h
...
11AA04... (3 Replies)
unzip -v gives CRC info of each file in a zip(in my case .EAR) file.
# unzip -v my-application.ear
Archive: my-application.ear
Length Method Size Cmpr Date Time CRC-32 Name
-------- ------ ------- ---- ---------- ----- -------- ----
197981 Defl:N 183708 7%... (1 Reply)