Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get back my Laravel Hashed Password?

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
like image 541
Karthik Avatar asked Oct 28 '25 11:10

Karthik


1 Answers

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...
}
like image 84
GRESPL Nagpur Avatar answered Oct 31 '25 01:10

GRESPL Nagpur



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!