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)0211LGPL-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 1mo ago

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

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

28

—

LowBetter than 54% of packages

Maintenance46

Moderate activity, may be stable

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity43

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

413d 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

[defuse/php-encryption

Secure PHP Encryption Library

3.9k162.4M214](/packages/defuse-php-encryption)[roave/security-advisories

Prevents installation of composer packages with known security vulnerabilities: no API, simply require it

2.9k97.3M6.4k](/packages/roave-security-advisories)[mews/purifier

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

2.0k16.7M113](/packages/mews-purifier)[robrichards/xmlseclibs

A PHP library for XML Security

41278.1M118](/packages/robrichards-xmlseclibs)[bjeavons/zxcvbn-php

Realistic password strength estimation PHP library based on Zxcvbn JS

86917.5M63](/packages/bjeavons-zxcvbn-php)[enlightn/security-checker

A PHP dependency vulnerabilities scanner based on the Security Advisories Database.

33732.2M110](/packages/enlightn-security-checker)

PHPackages © 2026

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