Menu

Can You Decrypt a Bcrypt Hash? No, and Here Is What Works Instead
📰

Can You Decrypt a Bcrypt Hash? No, and Here Is What Works Instead

DEV Community: php·Shahzaib Zafar·2 days ago
#tjTKrP3P
#devto#dev#bcrypt#hash#password
Reading 0:00
15s threshold

Every week someone asks how to "decrypt" a bcrypt hash. Here is the short answer, and what to do instead. Originally published on BcryptGenerator.org .

No, a bcrypt hash can't be decrypted. Not online, not with the salt, and not with a key, because there is no key. Bcrypt is a one-way hash: it turns a password into a fixed string, and there's no operation that turns that string back. The only way to learn the password behind a bcrypt hash is to guess passwords and check each guess, and bcrypt is deliberately designed to make that slow.

That's usually not what you actually need, though. Below are the things people searching "bcrypt decrypt" are usually trying to do, and how to do each one.

Is bcrypt encryption or hashing?

Hashing. The difference matters:

Encryption (e.g. AES) Hashing (bcrypt)

Reversible? Yes, with the key No

Uses a key?…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.