hashsponge

command module
v0.0.0-...-aae433b Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2023 License: BSD-3-Clause Imports: 12 Imported by: 0

README

hashsponge

Soak up standard input, and write to standard output if checksum matches the given argument. That's all.

example

$ echo "hello, world!" | ./hashsponge 4dca0fd5f424a31b03ab807cbae77eb32bf2d089eed1cee154b3afed458de0dc
hello, world!

$ echo "hello, world!" | ./hashsponge 12345678
error: hash mismatch (input hash: 4dca0fd5f424a31b03ab807cbae77eb32bf2d089eed1cee154b3afed458de0dc)

$ echo "hello" | ./hashsponge -q 1234 || echo $?
1

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