-1

I search how to decrypt a password stored in bcrypt using php, but I don't find a good explaination. Could you please send some useful links ? Thx in advance and sorry for my english

1
  • bcrypt is a hashing function so you can't "decrypt" the passwords. You can only compare them to the stored hashes, if you have any. Check out the bcrypt article on wikipedia. Commented Aug 15, 2016 at 7:23

1 Answer 1

8

You cannot decrypt a password stored with bcrypt. That's the whole point of using a cryptographic hash function.

All you can do is check if a given password matches (see code sample). This method could be applied repeatedly with many candidates, that is called "brute force attack", and it is not feasible for strong passwords.

Sign up to request clarification or add additional context in comments.

1 Comment

"that is called "brute force attack", and it is not feasible for strong passwords." until we have quantum computers.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.