PHP code example of mindplay / blowfish

1. Go to this page and download the library: Download mindplay/blowfish 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/ */

    

mindplay / blowfish example snippets


    $service = new BlowfishService();

    $password = '$up3rS3c3tp@55w0rD';

    $hash = $service->hash($password); // encrypt the password

    $is_valid = $service->check($password, $hash); // check the password