Hash Utilities
v1.0.0Generate and verify hashes (MD5, SHA variants, CRC32, HMAC, BLAKE2) for strings and files with streaming support and no external dependencies.
🔐 Hash Toolkit
Author: Lin Hui | GitHub | MIT License | v1.0.0
Compute and verify hashes for strings, files, and data. Supports MD5, SHA1, SHA256, SHA512, CRC32, HMAC, and BLAKE2.
✨ Features
- String hashing — Hash any text with your choice of algorithm
- File hashing — Compute hash of any file (streaming for large files)
- Verify — Compare a hash against expected value (pass/fail)
- Batch — Hash multiple files at once
- HMAC — Keyed-hash message authentication codes
- CRC32 — Quick checksums for data integrity
- BLAKE2 — Modern, fast, secure hash algorithm
🚀 Usage
Calculate the SHA256 hash of the string "hello world"
Compute the MD5 hash of the file /path/to/file.zip
Verify that the SHA256 hash of download.iso matches abc123def...
Generate HMAC-SHA256 signature for "message" with key "secret"
Calculate CRC32 checksum for data.bin
⚙️ Technical Details
- Runtime: Python 3.6+
- Dependencies: Zero (stdlib only: hashlib, hmac, zlib, binascii)
- Algorithms: MD5, SHA1, SHA224, SHA256, SHA384, SHA512, BLAKE2b, BLAKE2s, CRC32
- Large files: Streaming with 8MB chunks
Version tags
latest
