cast / sha2
Transparent SHA2-256 Implementation for PHP. Based on https://github.com/spipremix/ecrire/blob/master/auth/sha256.inc.php
Installs: 5
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/cast/sha2
Requires
- php: ^7.3
Requires (Dev)
- phpunit/phpunit: ^7
This package is auto-updated.
Last update: 2025-09-20 18:45:42 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: