PHPackages                             nicolasflamel/blake2b - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. nicolasflamel/blake2b

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

nicolasflamel/blake2b
=====================

PHP library for parts of the official BLAKE2b implementation

v0.1.0(2y ago)012MITPHPPHP &gt;=8.0.0

Since Mar 7Pushed 2y ago1 watchersCompare

[ Source](https://github.com/NicolasFlamel1/BLAKE2b-PHP-Library)[ Packagist](https://packagist.org/packages/nicolasflamel/blake2b)[ RSS](/packages/nicolasflamel-blake2b/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

BLAKE2b PHP Library
===================

[](#blake2b-php-library)

### Description

[](#description)

PHP library for parts of [the official BLAKE2b implementation](https://github.com/BLAKE2/BLAKE2).

### Installing

[](#installing)

Run the following command from the root of your project to install this library and configure your project to use it.

```
composer require nicolasflamel/blake2b

```

### Usage

[](#usage)

After a `Blake2b` object has been created, it can be used to compute the BLAKE2b hash of a string with an optional key and size.

The following code briefly shows how to use this library. A more complete example is available [here](https://github.com/NicolasFlamel1/BLAKE2b-PHP-Library/tree/master/example).

```

```

### Functions

[](#functions)

1. BLAKE2b constructor: `constructor(): Blake2b`

    This constructor is used to create a `Blake2b` object and it returns the following value:

    - `Blake2b`: An `Blake2b` object.
2. BLAKE2b compute method: `compute(string $input, ?string $key = NULL, int $resultSize = 32): string | FALSE`

    This method is used to compute the BLAKE2b hash for provided input and it accepts the following parameters:

    - `string $input`: The input to hash.
    - `?string $key` (optional): The key to use when computing the hash. If `NULL` then no key will be used.
    - `int $resultSize` (optional): The desired size of the hash.

    This method returns the following values:

    - `string`: The BLAKE2b hash for the provided input using the key if provided and at the specified size.
    - `FALSE`: Computing the hash failed.

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity36

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

800d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/30e451b8b48ad310dcd6a8245ff30bfa9a79c7170fe581fc9a428cea9d8cf70a?d=identicon)[nicolasflamel](/maintainers/nicolasflamel)

---

Top Contributors

[![NicolasFlamel1](https://avatars.githubusercontent.com/u/85004915?v=4)](https://github.com/NicolasFlamel1 "NicolasFlamel1 (6 commits)")

---

Tags

BLAKE2b

### Embed Badge

![Health badge](/badges/nicolasflamel-blake2b/health.svg)

```
[![Health](https://phpackages.com/badges/nicolasflamel-blake2b/health.svg)](https://phpackages.com/packages/nicolasflamel-blake2b)
```

###  Alternatives

[m1/env

Env is a lightweight library bringing .env file parser compatibility to PHP. In short - it enables you to read .env files with PHP.

6412.0M21](/packages/m1-env)[roave/psalm-html-output

Psalm HTML Output

23312.0k1](/packages/roave-psalm-html-output)[pear/system_daemon

A port of the PEAR class to create Daemons with pure PHP

11139.9k1](/packages/pear-system-daemon)[mateffy/laravel-codebase-mcp

An MCP server to give Cursor, Aider, etc. the ability to introspect your Laravel codebase directly, by querying for your models, views, routes and classes without raw file search.

201.1k](/packages/mateffy-laravel-codebase-mcp)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
