PHPackages                             shrikeh/crypto - 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. shrikeh/crypto

ActiveLibrary

shrikeh/crypto
==============

OOP implementations of various encryption methods for PHP. Standardises implementation across different methods (mcrypt, openssl, etc).

013PHP

Since Aug 13Pushed 10y agoCompare

[ Source](https://github.com/shrikeh/crypto)[ Packagist](https://packagist.org/packages/shrikeh/crypto)[ RSS](/packages/shrikeh-crypto/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (3)Used By (0)

crypto
======

[](#crypto)

OOP implementations of various encryption methods for PHP. Standardises implementation across different methods (mcrypt, openssl, etc).

[![Build Status](https://camo.githubusercontent.com/fb532d44f3b074967db325dd396715d633be3085cf23855bad35370218b356e1/68747470733a2f2f7472617669732d63692e6f72672f736872696b65682f63727970746f2e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/shrikeh/crypto)[![Scrutinizer Quality Score](https://camo.githubusercontent.com/17c2e30f95729789cfc29fbf46bcbbc869b1227549659f0ea60bd774fa997869/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f736872696b65682f63727970746f2f6261646765732f7175616c6974792d73636f72652e706e673f733d33396262383363353661623031616539326239656534633333623337313235383230336437333466)](https://scrutinizer-ci.com/g/shrikeh/crypto/)[![Dependency Status](https://camo.githubusercontent.com/8da01be30aa1c5a0badce46fe72065d1cafc1afc2d61c96624f99afdbb300c2d/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f757365722f70726f6a656374732f3533313465623339656331333735636433393030303034312f62616467652e706e67)](https://www.versioneye.com/user/projects/5314eb39ec1375cd39000041)[![Latest Stable Version](https://camo.githubusercontent.com/a6936143b4178364f2d5abc082e69d1a7d2204fb20daccd862a619f6a03e107a/68747470733a2f2f706f7365722e707567782e6f72672f736872696b65682f63727970746f2f762f737461626c652e706e67)](https://packagist.org/packages/shrikeh/crypto)[![Total Downloads](https://camo.githubusercontent.com/3709ddfed7ee2244d8c75b9c4ff604a8291a6b5fac43ce38cd9acc94721aa700/68747470733a2f2f706f7365722e707567782e6f72672f736872696b65682f63727970746f2f646f776e6c6f6164732e706e67)](https://packagist.org/packages/shrikeh/crypto)[![Latest Unstable Version](https://camo.githubusercontent.com/7343b524c95b9f36358c0a9c7745eec7add6b49928a0d6b37f2969f8efc6c1f2/68747470733a2f2f706f7365722e707567782e6f72672f736872696b65682f63727970746f2f762f756e737461626c652e706e67)](https://packagist.org/packages/shrikeh/crypto)[![License](https://camo.githubusercontent.com/04a7aac04a19bf997fb444f00f5af44c1a977550541036dff6371db716c8ab13/68747470733a2f2f706f7365722e707567782e6f72672f736872696b65682f63727970746f2f6c6963656e73652e706e67)](https://packagist.org/packages/shrikeh/crypto)

Why bother?
-----------

[](#why-bother)

There's a few advantages to handling encryption and password hashing via objects.

- if you use PHPUnit or Mockery, you'll find it a lot easier to mock pass/fail results.
- all of these have tests, so you don't have to write any for basic encryption, simplifying development.
- it helps dependency injection-led development by abstracting away the details of encryption implementation
- swapping out one form of encryption for another should be fairly easy (so long as you also update your data)

The Dos and Don'ts of Passwords
-------------------------------

[](#the-dos-and-donts-of-passwords)

- don't use the username of a user as these aren't globally unique and allow for rainbow table attacks.

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community6

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/62ab3e34ffd6ff72a98201ef7fc4f803077e7b25d62f39c81257b27d3467e273?d=identicon)[shrikeh](/maintainers/shrikeh)

---

Top Contributors

[![shrikeh](https://avatars.githubusercontent.com/u/445227?v=4)](https://github.com/shrikeh "shrikeh (9 commits)")

### Embed Badge

![Health badge](/badges/shrikeh-crypto/health.svg)

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

PHPackages © 2026

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