PHPackages                             samuelpouzet/crypt - 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. [Security](/categories/security)
4. /
5. samuelpouzet/crypt

ActiveLibrary[Security](/categories/security)

samuelpouzet/crypt
==================

Password crypter

1.0.1(1y ago)021LGPL-3.0-or-laterPHPPHP ^8.0.0

Since Mar 27Pushed 1y ago1 watchersCompare

[ Source](https://github.com/SamuelPouzet/Crypt)[ Packagist](https://packagist.org/packages/samuelpouzet/crypt)[ RSS](/packages/samuelpouzet-crypt/feed)WikiDiscussions master Synced today

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

The goal of this module is to create a simple password encryption and verification system.
This module works with two types of algorithms: Bcrypt (default) and ARGON2I/ARGON2ID.

**Bcrypt**

The Bcrypt algorithm is a hashing algorithm that is widely used and recommended by the security community to store user passwords in a secure way

### Bcrypt truncates Input &gt; 72 bytes

[](#bcrypt-truncates-input--72-bytes)

> The input string of the bcrypt algorithm is limited to 72 bytes. If you use a string with a length more than this limit, bcrypt will consider only the first 72 bytes.

We use a class *SamuelPouzet\\Crypt\\Crypt*

**Constructor :**

> $crypt = new Crypt(iterable $options = \[\], string $algorithm =*PASSWORD\_DEFAULT*)

**options :**

Bcrypt : *cost* (number between 4 and 31)

Argon : *memory\_cost*(number), *time\_cost* (number), *threads* (number)`

`**Encode :`\*\*

> $crypt-&gt;hash(string $plaintext): string

`**Verify**`

> $crypt-&gt;verify(string $password, string $hash): bool

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance42

Moderate activity, may be stable

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 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

Every ~0 days

Total

2

Last Release

462d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/98597807c6ca0b46352823af55a06f836acd13938d953a31fdf53945b8593e64?d=identicon)[Gandalf le bleu](/maintainers/Gandalf%20le%20bleu)

---

Top Contributors

[![SamuelPouzet](https://avatars.githubusercontent.com/u/16578724?v=4)](https://github.com/SamuelPouzet "SamuelPouzet (7 commits)")

### Embed Badge

![Health badge](/badges/samuelpouzet-crypt/health.svg)

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

###  Alternatives

[mews/purifier

Laravel 5/6/7/8/9/10 HtmlPurifier Package

2.0k18.7M142](/packages/mews-purifier)[paragonie/ecc

PHP Elliptic Curve Cryptography library

24820.0k37](/packages/paragonie-ecc)

PHPackages © 2026

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