Quick hash generator for strings and files. Supports MD5, SHA1, SHA256, SHA512 with auto-detection, comparison, and verification.
| Command | Description |
|---|---|
| --------- | ------------- |
hashgen md5 | MD5 hash of text |
hashgen sha1 | SHA1 hash of text |
hashgen sha256 | SHA256 hash of text |
hashgen sha512 | SHA512 hash of text |
hashgen all | Show all hash algorithms for text |
hashgen file | Hash a file (default: sha256) |
hashgen compare | Compare two hashes |
hashgen verify | Verify text matches hash (auto-detects algorithm) |
hashgen version | Show version |
hashgen md5 "hello world" # → MD5: 5eb63bbbe01...
hashgen sha256 "my secret" # → SHA256: 40e1b17...
hashgen all "test" # → shows MD5, SHA1, SHA256, SHA512
hashgen file /etc/hostname # → SHA256 of file
hashgen file /etc/hostname md5 # → MD5 of file
hashgen compare abc123 abc123 # → ✅ MATCH
hashgen verify "hello" 5d41... # → auto-detects algo, verifies
md5sum, sha1sum, sha256sum, sha512sum (standard coreutils)共 2 个版本