Hash Generator — MD5, SHA-1, SHA-256, SHA-384, SHA-512, HMAC
Compute 5 hash algorithms cùng lúc (MD5, SHA-1, SHA-256, SHA-384, SHA-512) + HMAC-SHA256/512 với secret key + file hash (SHA-256). Web Crypto API native.
—————Vì sao dùng tool này
Một input → 5 algos compute đồng thời (Promise.all). Nhanh hơn tool sequential.
SHA-* dùng crypto.subtle.digest — implementation native browser, FIPS-compliant trong Chrome/Edge.
Drag file → SHA-256 bytes-level (verify download integrity). Up to 100MB+ file.
Cách sử dụng
- 1Nhập text vào textarea — 5 hashes hiện ngay realtime.
- 2(Tùy chọn) Nhập HMAC secret key → HMAC-SHA256 + HMAC-SHA512 hiện thêm.
- 3(Tùy chọn) Upload file → SHA-256 hash file (dùng để verify download).
Hash algorithms
MD5 (128-bit, 1991): deprecated cho security (collision found 2004) nhưng vẫn dùng cho checksum không-bảo-mật. Tool dùng JS lib (Web Crypto không hỗ trợ MD5).
SHA-1 (160-bit, 1995): collision found 2017 — deprecated cho security. Vẫn dùng cho git, legacy.
SHA-2 family (256/384/512): hiện tại standard. SHA-256 phổ biến nhất (Bitcoin, TLS, password hashing với salt).
HMAC: keyed hash — combine secret + message, dùng cho authentication (API signature, JWT HS256).
- ✓MD5 + SHA-1/256/384/512 simultaneously
- ✓HMAC-SHA256 + HMAC-SHA512
- ✓File hash via drag-drop
- ✓Web Crypto API native (SHA-*)
- ✓Realtime — hash mỗi keystroke
- ✓Hex output (lowercase)
- ✓Copy per-algo
Câu hỏi thường gặp
MD5 dùng cho gì?
Chỉ cho checksum (file integrity, cache key). KHÔNG dùng cho password (rainbow table tấn công dễ) hay digital signature.
SHA-256 vs SHA-3?
Cùng security level (256-bit). SHA-3 khác internal structure (Keccak), an toàn hơn về theoretical. Tool chưa support SHA-3 (Web Crypto chưa có).
File hash chậm?
Web Crypto stream chunks, file 100MB ~5-10s. Browser main thread không bị block thanks to async digest.