openrat-cms

OpenRat Content Management System
git clone http://git.code.weiherhei.de/openrat-cms.git
Log | Files | Refs

PasswordTest.php (326B)


      1 <?php
      2 
      3 include('../modules/security/Password.class.php');
      4 use security\Password;
      5 
      6 ?>
      7 
      8 <p>
      9 <?php
     10 echo "Hash: ".Password::hash("wtf");
     11 ?>
     12 </p>
     13 
     14 
     15 <p>
     16 <?php
     17 echo "Check: ".Password::check("wtf",'$2y$10$LNY2qCb9elkMe/ITN09cB.6t5QqDzm9Uh9h/LV1I');
     18 
     19 echo "Check: ".Password::check("wtf",'aadce520e20c2899f4ced228a79a3083');
     20 
     21 
     22 ?>
     23 </p>