Băm một mật khẩu bằng bcrypt và xác minh một mật khẩu so với một hash bcrypt, hoàn toàn trong trình duyệt của bạn.
Cách dùng Bcrypt
Chọn Băm để tạo một hash, hoặc Xác minh để kiểm tra một hash.
Nhập một mật khẩu, và một hash khi xác minh.
Đọc hash bcrypt hoặc kết quả khớp.
A bcrypt tool that hashes a password at a cost you choose, and verifies a password against an existing bcrypt hash. Everything runs locally in your browser, so passwords stay on your device.
Bcrypt is an adaptive password-hashing function designed specifically for storing passwords. Unlike a fast hash such as SHA-256, it is deliberately slow and includes a built-in salt, which is exactly what you want when defending stored passwords.
The cost factor (the rounds) sets how much work each hash takes. Every extra round doubles the computation, so raising the cost makes large-scale brute-force and GPU attacks far slower, while a single login stays fast enough. A value of 10 to 12 is a common choice.
Bcrypt mixes a random salt into every hash, so the same password produces a different hash each time. That defeats precomputed rainbow tables, and verification still works because the salt is stored inside the hash itself.
To check a password, the verify mode reads the salt and cost out of the stored hash, hashes the candidate the same way, and compares, which is why you only need the hash and the password, not the original salt.
Hashing and verifying run entirely in your browser, so nothing is uploaded. Even so, avoid pasting real production passwords on a shared computer.
Câu hỏi thường gặp
Hệ số chi phí: mỗi vòng thêm nhân đôi công sức cần để tính hash, làm cho các cuộc tấn công vét cạn chậm hơn. 10 đến 12 là lựa chọn phổ biến.
Bcrypt bao gồm một salt ngẫu nhiên trong mỗi hash, nên đầu ra khác nhau ngay cả với cùng một mật khẩu. Việc xác minh vẫn hoạt động vì salt được lưu bên trong hash.
Việc băm chạy hoàn toàn trong trình duyệt của bạn, nên mật khẩu không được tải lên. Tuy vậy, hãy tránh dán mật khẩu sản xuất thật trên máy tính dùng chung.
Nhúng công cụ này
Thêm công cụ này vào trang web của riêng bạn. Sao chép đoạn mã bên dưới; nó tự động cập nhật.
<iframe src="https://monu.tools/embed/vi/bcrypt-generator" width="100%" height="640" style="border:1px solid #e5e5e5;border-radius:12px;max-width:680px" loading="lazy" title="Monu Tools"></iframe>Công cụ liên quan
Mã hóa văn bản sang Base64 hoặc giải mã Base64 về văn bản. An toàn UTF-8 với tự động nhận diện hướng.
Mã hóa và giải mã percent cho URL và thành phần URL, an toàn UTF-8.
Giải mã JSON Web Token để kiểm tra header và payload của nó, với thời gian hết hạn và thời gian phát hành dễ đọc. Chạy hoàn toàn trong trình duyệt của bạn; token không bao giờ được tải lên.
Tạo mã băm SHA-1, SHA-256, SHA-384 và SHA-512 cho bất kỳ văn bản nào, ngay trong trình duyệt của bạn.