hasha
is a simple command-line tool for generating hashes from input
data. This tool is useful for verifying data integrity and creating
secure checksums.
To install hasha
, you can check "releases" page. Here you should download
a version for your platform.
You can generate hash using different algorithms. Now the tool supports SHA256 and MD5. SHA256 algorithm is used by dafault.
To calculate hash for the string just run:
hasha "some string"
or
hasha -a md5 "some string"
ALso, you can calculate hash for the file! You can specify hash algorithm if necessary.
hasha path/to/file
Or use unix pipes:
cat file | hasha -a sha256
cat file | hasha
cat file | hasha -a md5
You can also use hasha
output to save in a file:
hasha path/to/file > chksum_sha256
hasha -a md5 path/to/file > chksum_md5
Unfortunately, hasha
is not ready for community contribution now.
You can make a feature request or bug report on "Issues" page.