PHPackages                             prostoroman/bcrypt - 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. prostoroman/bcrypt

ActiveLibrary[Security](/categories/security)

prostoroman/bcrypt
==================

A library for encoding strings using bcrypt.

028PHP

Since May 2Pushed 13y ago1 watchersCompare

[ Source](https://github.com/prostoroman/bcrypt)[ Packagist](https://packagist.org/packages/prostoroman/bcrypt)[ RSS](/packages/prostoroman-bcrypt/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Bcrypt
======

[](#bcrypt)

[![Build Status](https://camo.githubusercontent.com/c1166130c08d585d920b002d6b95620c482ad48f189d3edf94ed763701cab4d6/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f6b68657267652f4263727970742e706e673f6272616e63683d6d6173746572)](http://travis-ci.org/kherge/Bcrypt)

Provides a bcrypt function for PHP.

Installation
------------

[](#installation)

To install Bcrypt, you must add it to the list of dependencies in your [`composer.json`](http://getcomposer.org/) file.

```
$ php composer.phar require kherge/bcrypt=2.*

```

Example
-------

[](#example)

```
$encoded = bcrypt('test');
// $2y$10$JKjL8xFIoy4rdQLw3j26L.zEFs9IWb3tGEsDElPkDmN/.ngm46zYu

echo 'Verified? ', bcrypt_verify('test', $encoded) ? 'Yes' : 'No', "\n";
// Verified? Yes
```

Please see [the wiki](https://github.com/kherge/RunkitTestCase/wiki) for more detailed usage information.

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1306741?v=4)[Roman Logov](/maintainers/prostoroman)[@prostoroman](https://github.com/prostoroman)

---

Top Contributors

[![prostoroman](https://avatars.githubusercontent.com/u/1306741?v=4)](https://github.com/prostoroman "prostoroman (2 commits)")

### Embed Badge

![Health badge](/badges/prostoroman-bcrypt/health.svg)

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

###  Alternatives

[mews/purifier

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

2.0k18.0M138](/packages/mews-purifier)[paragonie/ecc

PHP Elliptic Curve Cryptography library

24772.0k36](/packages/paragonie-ecc)

PHPackages © 2026

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