crc32

command module
v0.0.0-...-164972f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 17, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

README

crc32 - calculate crc32 checksum

Usage

usage: crc32 [-decimal] [-polynomial ieee|castagnoli|koopman] [inputfile ...]

  -decimal
        print crc32 in decimal notation

  -polynomial string
        polynomial to use to calculate crc32: IEEE, Castagnoli or Koopman (default "castagnoli")

Description

Calculate the crc32 checksum for the specified files. If not specified, it will read the content from stdin. You can specify which polynomial to use. Cloud KMS uses Castagnoli.

Examples

to return crc32 checksum of specified files, type:

$ crc32 main.go README.md
aad0247b main.go
5cbc3315 README.md

to return crc32 checksum of stdin, type:

$ cat main.go | crc32
aad0247b

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL