1. Go to this page and download the library: Download orglman/fundamental library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
$password = 'password';
$hash = new orgelman\fundamental\security\hash($compress = 'true');
$hash->setPasswordLenghtMin($num); // Password minimum lenght
$hash->setPasswordLenghtMax($num); // Password maximum lenght
$hash->setPasswordNumber($num); // How many numbers the password must contain
$hash->setPasswordLetter($num); // How many letters the password must contain
$hash->setPasswordCapital($num); // How many CAPS the password must contain
$hash->setPasswordSymbol($num); // How many symbols the password must contain
$hash->setPasswordStrength($num); // How strong the password must be (0-4)
$hashedPass = $hash->generate($password);
if(!is_string($hashedPass)) {
echo '<ul>';
foreach(hashedPass as $error) {
echo '<li>'.$error.'</li>';
}
echo '</ul>';
} else {
if($hash->valid(password, $hashedPass)) {
echo 'Yay!';
} else {
echo 'Nay!';
}
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.