Tạo Mã Băm (Hash MD5, SHA-256...)
Tạo các giá trị băm mật mã an toàn bằng thuật toán MD5, SHA-1, SHA-224, SHA-256, SHA-384 và SHA-512 trực tiếp trên trình duyệt của bạn.
Kết quả
Type some text or drop a file to compute its hash.
Cách thức hoạt động
Nhập dữ liệu của bạn
Điền các giá trị cần thiết, dán văn bản hoặc tải lên tệp bạn muốn xử lý.
Xem kết quả tức thì
Hầu hết các công cụ cập nhật theo thời gian thực khi bạn nhập liệu; một số công cụ sử dụng một nút hành động duy nhất.
Sử dụng kết quả
Sao chép, tải xuống hoặc chia sẻ kết quả được tạo — bạn luôn có toàn quyền kiểm soát dữ liệu của mình.
Tạo Mã Băm (Hash MD5, SHA-256...) là gì?
Generate cryptographic hashes for text or a file, and compare against an expected checksum to verify a download wasn't corrupted or tampered with.
How to generate a hash or check a file's checksum
Which algorithm should I use?
SHA-256 is the most common choice today for checksums and general-purpose hashing. SHA-384 and SHA-512 are longer variants with the same design. SHA-1 is included because it's still what some older download pages and Git use, though it's no longer considered secure against a determined attacker.
Verifying a download
Many download pages publish a SHA-256 (or similar) checksum next to a file. Drop the downloaded file into this tool, paste the published hash into "Expected hash", and the tool detects which algorithm it matches by its length and tells you whether they're identical.
How to use it
- Switch between the Text and File tabs depending on what you're hashing.
- Type text, or drop a file, to see its SHA-1, SHA-256, SHA-384, and SHA-512 hashes.
- Optionally paste an expected hash to compare it automatically against the matching algorithm.
- Choose Copy next to any hash to copy it.
Hashing notes
Hashes are fingerprints, not secrets. Use them for integrity checks, and avoid treating an unsalted hash of private text as protected data.
Các Câu Hỏi Thường Gặp (FAQ)
Is a hash the same as encryption?
No. A hash is one-way: it produces a fixed-length fingerprint of the input, but there's no way to recover the original text or file from it. It's used to verify integrity, not to hide content.
Why isn't MD5 offered?
Browsers' built-in Web Crypto API does not implement MD5, only SHA-1 and the SHA-2 family. If you need to check an MD5 checksum specifically, you'll need a different tool.
How does the expected-hash comparison pick an algorithm?
It looks at the length of the hash you pasted: 40 hex characters means SHA-1, 64 means SHA-256, 96 means SHA-384, and 128 means SHA-512.
How large a file can I check?
The whole file is read into memory to compute its hash, so extremely large files (well over a few hundred megabytes) may be slow or hit your browser's memory limit.
Can two files have the same hash?
A collision is theoretically possible for any fixed-length hash. For normal integrity checks, SHA-256 and the larger SHA-2 hashes are the safer choices; avoid SHA-1 for security-critical trust decisions.
Công Cụ Liên Quan
- Khả dụngCục bộ
Trình Tạo Mật Khẩu Mạnh & Cụm Mật Khẩu (Passphrase)
Tạo mật khẩu ngẫu nhiên có độ bảo mật cao hoặc cụm mật khẩu dễ nhớ, an toàn.
- Khả dụngCục bộ
Trình Xem & Xóa Metadata EXIF Ảnh
Kiểm tra thông số máy ảnh và xóa siêu dữ liệu EXIF cùng tọa độ vị trí GPS khỏi ảnh.
- Khả dụngCục bộ
Trình Tạo Header Content Security Policy (CSP)
Thiết lập các quy tắc chính sách bảo mật header CSP nhằm ngăn chặn tấn công XSS.
- Khả dụngCục bộ
Giải Mã Chứng Chỉ SSL/TLS X.509
Phân tích tệp chứng chỉ PEM để xem tên miền (SANs), nhà cấp (CA) và hạn sử dụng.
- Khả dụngCục bộ
Phân Tích Header Email
Kiểm tra đường đi của thư, xác thực SPF, DKIM, DMARC và thời gian trễ nhận thư.
- Khả dụngMáy chủ
Kiểm Tra Rò Rỉ Mật Khẩu
Kiểm tra xem mật khẩu của bạn đã từng bị lộ trong các vụ rò rỉ dữ liệu hay chưa.
- Khả dụngMáy chủ
Quét Header Bảo Mật Web
Kiểm tra các tiêu đề bảo mật HTTP của website: HSTS, CSP, X-Frame-Options...
- Khả dụngCục bộ
Tạo Chữ Ký Khóa Bí Mật HMAC
Tạo mã xác thực thông báo có khóa (HMAC) bằng SHA-256, SHA-512, MD5.
- Khả dụngCục bộ
Trình Tạo & Kiểm Tra Khóa SSH (Ed25519 & RSA)
Tạo cặp khóa SSH (Ed25519 / RSA) an toàn hoặc kiểm tra fingerprint của khóa công khai.
- Khả dụngCục bộ
Máy Tính Phần Trăm Đa Năng
Tính tỷ lệ phần trăm của một số, tỷ lệ tăng trưởng, giảm giá, chiết khấu và độ lệch.