Unix and Linux Discussions Tagged with hash |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
7 |
18,601 |
Shell Programming and Scripting |
|
|
|
3 |
5,087 |
Shell Programming and Scripting |
|
|
|
2 |
12,235 |
Shell Programming and Scripting |
|
|
|
1 |
5,303 |
Shell Programming and Scripting |
|
|
|
1 |
5,563 |
Shell Programming and Scripting |
|
|
|
3 |
4,669 |
Shell Programming and Scripting |
|
|
|
3 |
3,182 |
Shell Programming and Scripting |
|
|
|
2 |
37,384 |
Ubuntu |
|
|
|
3 |
5,361 |
Web Development |
|
|
|
7 |
2,671 |
Programming |
|
|
|
2 |
9,380 |
Shell Programming and Scripting |
|
|
|
0 |
4,900 |
UNIX for Advanced & Expert Users |
|
|
|
0 |
4,176 |
Shell Programming and Scripting |
|
|
|
2 |
11,856 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
30,167 |
Shell Programming and Scripting |
|
|
|
6 |
23,244 |
Shell Programming and Scripting |
|
|
|
11 |
14,264 |
Shell Programming and Scripting |
|
|
|
0 |
1,027 |
Software Releases - RSS News |
|
|
|
0 |
937 |
Software Releases - RSS News |
|
|
|
2 |
2,085 |
Shell Programming and Scripting |
|
|
|
0 |
780 |
Software Releases - RSS News |
|
|
|
8 |
16,321 |
Solaris |
|
|
|
1 |
8,154 |
Shell Programming and Scripting |
|
|
|
0 |
913 |
Software Releases - RSS News |
|
|
|
9 |
6,386 |
Shell Programming and Scripting |
|
|
|
2 |
43,399 |
Shell Programming and Scripting |
|
|
|
3 |
2,875 |
Shell Programming and Scripting |
|
|
|
2 |
6,574 |
UNIX for Dummies Questions & Answers |
|
|
|
0 |
1,858 |
UNIX and Linux RSS News |
|
|
|
0 |
3,385 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
2,925 |
Programming |
|
|
|
1 |
3,051 |
Shell Programming and Scripting |
|
|
|
1 |
2,836 |
Shell Programming and Scripting |
|
|
|
1 |
2,741 |
Shell Programming and Scripting |
|
|
|
1 |
3,228 |
Shell Programming and Scripting |
|
|
|
0 |
2,048 |
Security Advisories (RSS) |
|
|
|
0 |
869 |
Software Releases - RSS News |
|
|
|
1 |
17,387 |
Shell Programming and Scripting |
|
|
|
17 |
12,134 |
Shell Programming and Scripting |
|
|
|
5 |
6,194 |
Programming |
PASSWORD_VERIFY(3) 1 PASSWORD_VERIFY(3)
password_verify - Verifies that a password matches a hash
SYNOPSIS
boolean password_verify (string $password, string $hash)
DESCRIPTION
Verifies that the given hash matches the given password.
Note that password_hash(3) returns the algorithm, cost and salt as part of the returned hash. Therefore, all information that's needed to
verify the hash is included in it. This allows the verify function to verify the hash without needing separate storage for the salt or
algorithm information.
PARAMETERS
o $password
- The user's password.
o $hash
- A hash created by password_hash(3).
RETURN VALUES
Returns TRUE if the password and hash match, or FALSE otherwise.
EXAMPLES
Example #1
password_verify(3) example
<?php
// See the password_hash() example to see where this came from.
$hash = '$2y$07$BCryptRequires22Chrcte/VlQH0piJtjXl.0t1XkA8pw9dMXTpOq';
if (password_verify('rasmuslerdorf', $hash)) {
echo 'Password is valid!';
} else {
echo 'Invalid password.';
}
?>
The above example will output:
Password is valid!
SEE ALSO
password_hash(3), userland implementation.
PHP Documentation Group PASSWORD_VERIFY(3)