Hash and verify Bcrypt password hashes entirely in your browser: choose a cost factor (rounds), generate a standard 60-character salted hash, and check plaintext against a stored hash. No data is uploaded.
Bcrypt 雜湊串結構:$2b$10$salt_hash,其中 $2b$ 為演算法版本、10 為成本因子(cost factor,指數級決定計算量,10≈150ms、12≈600ms)、其後 22 字元為隨機鹽、最後 31 字元為派生雜湊。校驗時無需單獨儲存鹽,鹽已內嵌在雜湊串中隨密文一同儲存;口令比對採用恆定時間比較,防止時序側通道攻擊。
💡 Bcrypt 內建鹽值(salt),相同明文每次生成結果不同;校驗時自動從雜湊中提取鹽。bcryptjs 庫來自 jsdelivr CDN,計算完全在本地。