chk

command module
v0.0.0-...-33e2257 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2017 License: MIT Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

chk

chk your file hashes

Install

go get github.com/ladydascalie/chk

Or just grab one of the releases

Examples

Usage of chk:
  -c string
    	chk -c {hash} {file or files}
Display a file's hashes
chk file.txt

# output:
file:    file.txt
md5:     01234516b98bac202ecaee7ac4001234
sha1:    012343ee5e6b4b0d3255bfef95601890afd01234
sha256:  0123444298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b78501234
Compare to a known hash
chk -c 01234516b98bac202ecaee7ac4001234 file.txt

# output will be the same, but any matching hash will be printed in green
Checking multiple files

Of course this works with the -c flag as well

chk file.txt file2.txt

# output:
file:    file.txt
md5:     01234516b98bac202ecaee7ac4001234
sha1:    012343ee5e6b4b0d3255bfef95601890afd01234
sha256:  0123444298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b78501234
---
file:    file2.txt
md5:     01234516b98bac202ecaee7ac4001234
sha1:    012343ee5e6b4b0d3255bfef95601890afd01234
sha256:  0123444298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b78501234

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
⌂ 换网址