Skip to content

theelderbeever/russet-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Russet

A simple hashing cli that uses Rust's sha3 crate.

Usage

russet -h
Hashing cli.echo -n 'some text' | russet sha256
802a5a961895b3f8c6556e31d0960a5778d7135be7d04bbbadd5e406c4bac381russet sha256 'some text'
n802a5a961895b3f8c6556e31d0960a5778d7135be7d04bbbadd5e406c4bac381

Usage: russet <METHOD> [VALUE]

Arguments:
  <METHOD>  [possible values: md5, crc32, blake3, sha224, sha256, sha384, sha512, keccak224, keccak256, keccak384, keccak512]
  [VALUE]   The string value to hash. Can also be piped to stdin.

Options:
  -h, --help     Print help
  -V, --version  Print version

You can directly pass the string as a positional arg...

russet sha256 'cow pig cat dog'
a1d80438bb2be9bae075db1e5be965fc301a52ca1bf046735b218ea7242ec8b9

Or pipe from stdin...

echo -n 'cow pig cat dog' | russet sha256
a1d80438bb2be9bae075db1e5be965fc301a52ca1bf046735b218ea7242ec8b9

Which works with file contents as well...

cat farm-animals.txt | russet sha256
a1d80438bb2be9bae075db1e5be965fc301a52ca1bf046735b218ea7242ec8b9

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages