PHP code example of recallg / makepass
1. Go to this page and download the library: Download recallg/makepass 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/ */
recallg / makepass example snippets
Recallg\Makepass\Verification;
$Makepass = new Verification();
$password = '123456';
$str = $Makepass->encryption($password);
echo $str."</br>";
$res = $Makepass->decryption("123456", $str);
if ($res)
{
echo '密码正确';
}else{
echo '密码错误';
}