Công cụ này tính mã băm SHA-1, SHA-256, SHA-384 và SHA-512 cho văn bản hoặc file ngay trên máy, dùng Web Crypto API của trình duyệt. Bạn dùng để kiểm tra file tải về có bị hỏng hay bị thay đổi trên đường truyền, so khớp checksum mà nhà phát hành công bố, hoặc tạo mã định danh duy nhất cho một khối dữ liệu.
Hàm băm là một chiều: không thể dịch ngược từ mã băm ra nội dung gốc, và chỉ cần đổi một ký tự là kết quả thay đổi hoàn toàn. Tuyệt đối không dùng MD5 hay SHA-1 để lưu mật khẩu vì cả hai đã có thể tạo va chạm; với mật khẩu, cần dùng thuật toán chuyên dụng như bcrypt, scrypt hoặc Argon2 có yếu tố làm chậm.
Cách sử dụng
- Chọn chế độ băm văn bản hoặc băm file.
- Dán nội dung hoặc kéo thả file cần tính mã băm.
- Chọn thuật toán SHA-1, SHA-256, SHA-384 hoặc SHA-512.
- Sao chép mã băm và so sánh với giá trị công bố của nhà phát hành.
This tool computes SHA-1, SHA-256, SHA-384, and SHA-512 hashes for text or files right on your machine using the Web Crypto API. Use it to confirm a download was not corrupted or tampered with in transit, match a checksum published by a vendor, or fingerprint a block of data.
A hash function is one-way: you cannot reverse a digest back into the original content, and changing a single character alters the output entirely. Never use MD5 or SHA-1 to store passwords, as both are vulnerable to collisions. Passwords need a purpose-built algorithm such as bcrypt, scrypt, or Argon2 that is deliberately slow.
How to use
- Choose text mode or file mode.
- Paste the content or drop the file to hash.
- Select SHA-1, SHA-256, SHA-384, or SHA-512.
- Copy the digest and compare it against the value the vendor published.