note 128795 added to function.password-verify

From: Date: Sat, 12 Aug 2023 18:43:21 +0000
Subject: note 128795 added to function.password-verify
Groups: php.notes 
Request: Send a blank email to php-notes+get-220755@lists.php.net to get a copy of this message
I'm using the example code on phptester.com, and the result is "Invalid password." // See the password_hash() example to see where this came from. $hash = '$2y$07$BCrypts22Chrcte/VlQH0piJtjXl.0t1XkA8pw9dMXTpOq'; if (password_verify('rasmuslerdorf', $hash)) { echo 'Password is valid!'; } else { echo 'Invalid password.'; } output: Invalid password. Why? ---- Server IP: 45.112.84.4 Probable Submitter: 45.91.157.134 (proxied: 2804:14c:5983:88a3:5464:44bd:54f5:5c70) ---- Manual Page -- https://php.net/manual/en/function.password-verify.php Edit -- https://main.php.net/note/edit/128795 Del: integrated -- https://main.php.net/note/delete/128795/integrated Del: useless -- https://main.php.net/note/delete/128795/useless Del: bad code -- https://main.php.net/note/delete/128795/bad+code Del: spam -- https://main.php.net/note/delete/128795/spam Del: non-english -- https://main.php.net/note/delete/128795/non-english Del: in docs -- https://main.php.net/note/delete/128795/in+docs Del: other reasons-- https://main.php.net/note/delete/128795 Reject -- https://main.php.net/note/reject/128795 Search -- https://main.php.net/manage/user-notes.php

« previous php.notes (#220755) next »