承接 danielburger1337/sha3-shake 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

danielburger1337/sha3-shake

最新稳定版本:v1.1.1

Composer 安装命令:

composer require danielburger1337/sha3-shake

包简介

SHA-3 SHAKE implementation in PHP

README 文档

README

PHPCSFixer PHPUnit PHPStan Packagist Version Packagist Downloads

SHA3-SHAKE

Native PHP implementation of the SHA3-SHAKE (KECCAK) algorithm.

This library is PSR-4 compatible and can be installed via PHP's dependency manager Composer.

composer require danielburger1337/sha3-shake

This library requires a 64-bit version of PHP.

Why does this library exist ?

Since version ^7.1 the SHA3 algorithm is nativly supported by PHP via the hash function. However, the SHAKE128 and SHAKE256 variants are not supported.

How To Use

The library exposes two public static method for both shake versions. See the PHPDoc annotation for more information about the arguments.

<?php
    use danielburger1337\SHA3Shake\SHA3Shake;

    SHA3Shake::shake128('This is a test string.', 64);
    // 041b3634a7b103979e4c7e100cdc6ec19e3541b15633657ebae4bb7dd9aca0dc

    SHA3Shake::shake256('This is a test string.', 64);
    // ec31f7a681a317a276b844e22e3e777834c5de311816d70329d5c8054846946b

Sources

This library uses a modified implementation from the abandoned bb/php-sha3 package.

统计信息

  • 总下载量: 11.62k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 1
  • 依赖项目数: 3
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-04-15