-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

TanGio
  • 766
  • 2
  • 12
  • 34
  • 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. – ayushgp Aug 15 '16 at 07:23

1 Answers1

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.

Community
  • 1
  • 1
Thilo
  • 257,207
  • 101
  • 511
  • 656
  • *"that is called "brute force attack", and it is not feasible for strong passwords."* until we have quantum computers. – Memor-X Aug 15 '16 at 06:54