Bcrypt Online Encryption/Verification
Generate and verify secure password hashes using Bcrypt algorithm, widely used with good compatibility.
Cost Factor
Higher values are more secure but take longer to compute. Recommended: 10-12
About Bcrypt
Bcrypt is an adaptive password hashing function based on the Blowfish cipher, designed by Niels Provos and David Mazières in 1999. It includes a cost factor that can be increased as hardware performance improves, maintaining the difficulty of cracking.
Important: Never store plaintext passwords! Always use password hashing algorithms like Bcrypt to store user passwords. These algorithms have built-in salt generation, which effectively prevents rainbow table attacks.
Bcrypt Features
Bcrypt supports passwords up to 72 bytes and generates 60-character hash values with $2a$, $2b$, or $2y$ prefixes. The cost factor ranges from 4-31, with 10-12 recommended. Bcrypt is widely used with good compatibility, making it a reliable choice for password storage.
Best Practices
- Use cost factor ≥10, adjust based on hardware performance
- Never store plaintext passwords or use MD5/SHA for password hashing
- Regularly update cost factor to keep up with hardware development