How to decrypt Hash Password in Laravel

后端 未结 2 1534
[愿得一人]
[愿得一人] 2021-02-13 01:40

I have google this alot, but unfortunatilty found no working solution.

I know its a bad technique, but I need to send user its password by email.

I have manage

2条回答
  •  攒了一身酷
    2021-02-13 02:28

    For compare hashed password with the plain text password string you can use the PHP password_verify

    if(password_verify('1234567', $crypt_password_string)) {
        // in case if "$crypt_password_string" actually hides "1234567"
    }
    

提交回复
热议问题