Tạo Hash
Tạo hash MD5, SHA-1, SHA-256, SHA-512 từ văn bản hoặc file
Hash Values
Note: MD5 is not available in the Web Crypto API. For MD5, a JavaScript implementation would be needed.
Hash Generator — MD5, SHA-1, SHA-256, SHA-512
Generate cryptographic hash values from any text using MD5, SHA-1, SHA-256, SHA-512, and more — instantly, in your browser. Use hashes to verify file integrity, store passwords, or build checksums.
Hash algorithms explained
MD5 (128-bit)
Fast but cryptographically broken. Use only for non-security checksums.
SHA-1 (160-bit)
Deprecated for security. Still common in legacy systems and git commits.
SHA-256 (256-bit)
Current standard for secure hashing. Part of SHA-2 family.
SHA-512 (512-bit)
Stronger than SHA-256, used where maximum collision resistance is required.
FAQ
What is a hash function?
A hash function takes any input and produces a fixed-length string of characters. The same input always produces the same hash, but even a tiny change in input produces a completely different hash.
Can you reverse a hash back to the original text?
No — hashing is a one-way function. You cannot mathematically reverse a hash. Attackers use precomputed tables (rainbow tables) or brute force, which is why strong algorithms and salting matter.
Which hash algorithm should I use?
For security (passwords, signatures): SHA-256 or SHA-512. For checksums and file integrity: SHA-256. Never use MD5 or SHA-1 for security — both have known collision vulnerabilities.
Tiếp tục khám phá
Công cụ Công cụ Developer khác bạn có thể thích…
Định dạng JSON
Định dạng, kiểm tra và nén JSON với tô sáng cú pháp và phát hiện lỗi
Mã hóa/Giải mã Base64
Mã hóa văn bản hoặc file sang Base64 và giải mã chuỗi Base64 thành văn bản
Mã hóa/Giải mã URL
Mã hóa và giải mã thành phần URL và tham số query string
Tạo UUID
Tạo UUID ngẫu nhiên (v1, v4) hoặc tạo hàng loạt nhiều UUID cùng lúc
Kiểm tra Regex
Kiểm tra biểu thức chính quy với tô sáng khớp thời gian thực và trích xuất nhóm
Giải mã JWT
Giải mã và kiểm tra JSON Web Token — xem header, payload và xác minh chữ ký
Định dạng HTML
Định dạng và làm đẹp mã HTML với thụt lề đúng và tô sáng cú pháp
Nén CSS
Nén mã CSS để giảm kích thước file bằng cách xóa khoảng trắng và comment