4

I already saved my Password as hashed password in database and how to get password in original format?

My Password is:

 $2y$10$WASUjz4XeyjusUI5M7PY3.6vUNOofzMUiVEH/7agw6Gf4JQCWVwiy
Karthik
  • 5,589
  • 18
  • 46
  • 78

1 Answers1

9

You cannot decrypt laravel password hash which is bcrypt. You can change it with new password.

And apply comparisons like this

Edit

You can get the hashedPassword like this:

$hashedPassword = Auth::user()->getAuthPassword();

And check like this:

if (Hash::check('password', $hashedPassword)) {
    // The passwords match...
}
Ilario Engler
  • 2,419
  • 2
  • 27
  • 40
GRESPL Nagpur
  • 2,048
  • 3
  • 20
  • 40