PHP code example of zheeknodev / sipher

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

    

zheeknodev / sipher example snippets

sh

    // Autoload from composer
    some secret words');
    
    // coding something here
sh
$password_hash = "JDJ5JDEwJE5tdkVvcXl3TU9RekwzL0g0blEwbnVmLzJXUjl4a2VSRDdBVzJBN2JXMkltYVF1UjVHdzRT";

// result will return as boolean, TRUE and FASLE
$verifying_password = $app->get_password_verify("Your password", $password_hash);

// output -> true
sh
$crypt = "0e7ef28192db0a0f10b8f35ce944801a0ba2e397f3af28b292202f1eda52f5cb";

// result will return as boolean, TRUE and FASLE
$crypt_verify = $app->get_crypt_verify('password', $crypt);
sh
// From the previous example
$encrypt_string = $result->encrypted;
$encrypt_check_hash = $result->ecrypt_check_hash;
$encrypt_key = $result->encrypt_key;

// result will return as boolean, TRUE and FASLE
$app->get_verify_encrypt($encrypt_string,$encrypt_check_hash, $encryt_key);