PHP code example of cast / sha2

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


composer 



use function Cast\Crypto\Sha2\sha256;

sha256('The quick brown fox jumps over the lazy dog');
// d7a8fbb307d7809469ca9abcb0082e4f8d5651e46d3cdb762d02d0bf37c9e592