Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/danielburger1337/sha3-shake-php

SHA-3 SHAKE implementation in PHP
https://github.com/danielburger1337/sha3-shake-php

keccak php php-library sha3 shake128 shake256

Last synced: about 1 month ago
JSON representation

SHA-3 SHAKE implementation in PHP

Awesome Lists containing this project

README

        

[![PHPCSFixer](https://github.com/danielburger1337/sha3-shake-php/actions/workflows/phpcsfixer.yml/badge.svg)](https://github.com/danielburger1337/sha3-shake-php/actions/workflows/phpcsfixer.yml)
[![PHPUnit](https://github.com/danielburger1337/sha3-shake-php/actions/workflows/phpunit.yml/badge.svg)](https://github.com/danielburger1337/sha3-shake-php/actions/workflows/phpunit.yml)
[![PHPStan](https://github.com/danielburger1337/sha3-shake-php/actions/workflows/phpstan.yml/badge.svg)](https://github.com/danielburger1337/sha3-shake-php/actions/workflows/phpstan.yml)
![Packagist Version](https://img.shields.io/packagist/v/danielburger1337/sha3-shake?link=https%3A%2F%2Fpackagist.org%2Fpackages%2Fdanielburger1337%2Fsha3-shake-php)
![Packagist Downloads](https://img.shields.io/packagist/dt/danielburger1337/sha3-shake?link=https%3A%2F%2Fpackagist.org%2Fpackages%2Fdanielburger1337%2Fsha3-shake-php)

# SHA3-SHAKE

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

This library is [PSR-4](https://www.php-fig.org/psr/psr-4/) compatible and can be installed via PHP's dependency manager [Composer](https://getcomposer.org).

```shell
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`](https://www.php.net/manual/function.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