PHP code example of temas765 / password-hasher
1. Go to this page and download the library: Download temas765/password-hasher 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/ */
temas765 / password-hasher example snippets
$passwordHasher = new PasswordHasher(new Md5Hasher());
echo "Password hash: {$passwordHasher->hashPassword('secret')}"; // Password hash: 5ebe2294ecd0e0f08eab7690d2a6ee69