Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

password_verify php


<?php
$hash = password_hash('rasmuslerdorf');
// the password_hash function will encrypt the password into a 60 character string
if (password_verify('rasmuslerdorf', $hash)) {
    echo 'Password is valid!';
} else {
    echo 'Invalid password.';
}
?>
// the only to decrypt is by using the password_verify() function
Source by www.php.net #
 
PREVIOUS NEXT
Tagged: #php
ADD COMMENT
Topic
Name
8+1 =