danielburger1337/sha3-shake 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱: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.52k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 3
  • 依赖项目数: 3
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 未知

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固