Generate secure bcrypt password hashes with configurable cost factors (4–31). All hashing is performed server-side with PHP's native bcrypt implementation. Never stored or logged.
Cost factor changes hash length prefix only slightly
Empty password (allowed but unsafe)
Very long passwords truncated by bcrypt (72-byte limit)
Frequently Asked Questions
Why does bcrypt produce a different hash every time for the same password?
Bcrypt automatically generates a unique, cryptographically random salt for each hash operation. This prevents rainbow table attacks and credential matching.
What is the recommended cost factor for production?
A cost factor between 10 and 12 is recommended for modern web servers. It balances robust brute-force protection with reasonable server response times.
Can a bcrypt hash be decrypted back to the original password?
No. Bcrypt is a one-way cryptographic hash function. Hashes can only be verified by hashing an incoming password and comparing the results.
Privacy notice: when you run this tool, your input is sent over HTTPS to our server, processed in memory and returned. It is not stored or logged. Avoid pasting live secrets such as private keys or passwords.