多用途哈希工具:MD5、SHA-1、SHA-256、SHA-512、BLAKE2b、Base64 编码/解码、UUID 生成、HMAC 签名。仅使用 Python 标准库,无需 API 密钥。
All-in-one hash utility supporting multiple algorithms, Base64 encoding/decoding, UUID generation, and HMAC signing. Pure Python standard library, works offline.
bash
# SHA-256 (default)
python3 scripts/hash_toolkit.py "Hello World"
# MD5
python3 scripts/hash_toolkit.py "Hello World" --algo md5
# SHA-512
python3 scripts/hash_toolkit.py "Hello World" --algo sha512
# BLAKE2b
python3 scripts/hash_toolkit.py "Hello World" --algo blake2
bash
# Encode
python3 scripts/hash_toolkit.py "Hello World" --encode64
# Decode
python3 scripts/hash_toolkit.py "SGVsbG8gV29ybGQ=" --decode
bash
# Generate one UUID
python3 scripts/hash_toolkit.py --uuid
# Generate 5 UUIDs
python3 scripts/hash_toolkit.py --uuid --count 5
bash
# HMAC-SHA256
python3 scripts/hash_toolkit.py "message" --hmac "secret-key"
# HMAC with different algorithm
python3 scripts/hash_toolkit.py "message" --hmac "secret-key" --algo sha512
OptionDescriptionTEXTText to hash/encode--algoAlgorithm: md5, sha1, sha256, sha512, blake2 (default: sha256)--encode64Base64 encode--decodeBase64 decode--uuidGenerate UUID--hmac KEYHMAC signing with key--upperOutput uppercase--count NNumber of UUIDs to generate
多功能Hash工具,支持多种哈希算法、Base64编解码、UUID生成、HMAC签名。纯Python标准库,无需API Key。