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

This package is auto-updated.

Last update: 2024-05-20 15:59:24 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: