cast/sha2

PHP 的透明 SHA2-256 实现。基于 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-09-20 16:50:56 UTC


README

PHP 的透明 SHA2-256 实现

安装

composer require cast/sha2

用法

<?php

use function Cast\Crypto\Sha2\sha256;

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

基于 https://github.com/spipremix/ecrire/blob/master/auth/sha256.inc.php

链接