hash
Hash & Checksum Tool.
Commands
md5
Compute MD5 hash
scripts/script.sh md5 <file_or_text>
sha1
Compute SHA-1 hash
scripts/script.sh sha1 <file_or_text>
sha256
Compute SHA-256 hash
scripts/script.sh sha256 <file_or_text>
sha512
Compute SHA-512 hash
scripts/script.sh sha512 <file_or_text>
verify
Verify a file against a known hash
scripts/script.sh verify <file> <expected_hash>
compare
Compare hashes of two files
scripts/script.sh compare <file1> <file2>
batch
Hash every file in a directory (default: sha256)
scripts/script.sh batch <directory> [algo]
check
Verify hashes listed in a checksum file
scripts/script.sh check <hashfile>
history
Show recent hash operations
scripts/script.sh history
Requirements
- bash 4.0+
Powered by BytesAgain | bytesagain.com | hello@bytesagain.com