PHP code example of cast / scrypt

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

    

cast / scrypt example snippets


composer 



use function Cast\Crypto\Scrypt\scrypt;

$expected = "77d6576238657b203b19ca42c18a0497f16b4844e3074ae8dfdffa3fede21442fcd0069ded0948f8326a753a0fc81f17e8d3e0fb2e0d3628cf35e20c38d18906";
// strlen($expected) == 128
$actual = bin2hex(scrypt("", "", 16, 1, 1, 64));
// strlen($actual) == 128