Skip to content
/ sum Public

Minimal CLI file hashing tool

License

Notifications You must be signed in to change notification settings

70sh1/sum

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sum ✔️

Go version Go code report card License: MIT

sum is a minimal and concurrent CLI file hashing tool.

Flags

-m - specify hash function.

Currently supported:

sha256 default
sha512 -
blake2b -
blake3 modern & fast
sha1 not recommended
md5 not recommended

Examples

Input

sum data.txt
sum -m blake3 data.txt
sum -m md5 data.txt file2.png bin.exe

Output

aa3ec16e6acc809d8b2818662276256abfd2f1b441cb51574933f3d4bd115d11 data.txt
c7a4b65f79934d742ea07a9e85b3bbb1ab9ad9f42033d8a0698495d0f564c804 data.txt
65e3dd724be2affbda44084e213ea63a bin.exe
764569e58f53ea8b6404f6fa7fc0247f data.txt
79695d7d0054d14d68b513ed997f7946 file2.png

Installation

Prebuilt binaries are available for Windows, Linux, and macOS (both x86 and ARM): download the latest release from the releases page for the desired OS.


If you have Go installed, the simplest way to get sum is to run:

go install github.com/70sh1/sum@latest

If you are on Linux and using this method, make sure that go bin path is added to your PATH environment variable: e.g. export PATH=$PATH:$HOME/go/bin

Acknowledgements

zeebo/blake3 - blake3 implementation.