cast / sha2
Transparent SHA2-256 Implementation for PHP. Based on https://github.com/spipremix/ecrire/blob/master/auth/sha256.inc.php
1.1
2020-05-20 06:49 UTC
Requires
- php: ^7.3
Requires (Dev)
- phpunit/phpunit: ^7
This package is auto-updated.
Last update: 2024-11-20 17:08:06 UTC
README
Transparent SHA2-256 Implementation for PHP
Install:
composer require cast/sha2
Usage:
<?php use function Cast\Crypto\Sha2\sha256; sha256('The quick brown fox jumps over the lazy dog'); // d7a8fbb307d7809469ca9abcb0082e4f8d5651e46d3cdb762d02d0bf37c9e592
Based on https://github.com/spipremix/ecrire/blob/master/auth/sha256.inc.php.
Links: