Security ToolsFree
Bcrypt Generator
Hash passwords using the bcrypt algorithm. Choose cost factor (rounds). Verify bcrypt hashes against plain text. Uses bcryptjs — all in-browser.
📦 Install required package:
npm install bcryptjsThen replace this component with the implementation below.
Implementation (after installing bcryptjs):
import bcrypt from 'bcryptjs'; // Hash: const hash = await bcrypt.hash(password, costFactor); // Verify: const match = await bcrypt.compare(plain, hash);
Frequently Asked Questions
What cost factor should I use?▼
Cost 10-12 is standard for most apps. Higher cost is more secure but slower.
Can I verify an existing bcrypt hash?▼
Yes. Enter the plain text and hash to verify if they match.