PHPackages                             dorantor/simple-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. dorantor/simple-crypt

ActiveLibrary[Security](/categories/security)

dorantor/simple-crypt
=====================

Very simple lib for symmetric en/decrypt messages so they could be sent through untrusted channels.

v1.0.1(9y ago)09.2kMITPHPPHP ^5.6|^7.0

Since Jun 21Pushed 9y ago1 watchersCompare

[ Source](https://github.com/dorantor/simple-crypt)[ Packagist](https://packagist.org/packages/dorantor/simple-crypt)[ Docs](https://github.com/dorantor/simple-crypt/)[ RSS](/packages/dorantor-simple-crypt/feed)WikiDiscussions master Synced 3w ago

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

simple-crypt
============

[](#simple-crypt)

Very simple lib for symmetric en/decrypt messages so they could be sent through untrusted channels.

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

[](#installation)

```
composer require dorantor/simple-crypt

```

Usage
-----

[](#usage)

```
// 32 byte string as key
$key = md5('simple-crypt'); // 1b8ee2dc7723b2846792349dd4c74dc2
$crypt = new \Dorantor\SimpleCrypt($key);

$eMessage = $crypt->encrypt('Secret message that should be read only by trusted ones');

// ...

$oMessage = $crypt->decrypt($eMessage);
```

License
-------

[](#license)

The library is released under the MIT License. See the bundled LICENSE file for details.

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

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

3289d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2329a22e1ce0a43c84d94c124dfacb2d16ef842b24348fa0f3a276785ed4bed2?d=identicon)[dorantor](/maintainers/dorantor)

---

Top Contributors

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

---

Tags

cipheringopensslphpphp-libraryopensslciphersymmetric

### Embed Badge

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

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

###  Alternatives

[defuse/php-encryption

Secure PHP Encryption Library

3.9k170.7M239](/packages/defuse-php-encryption)[mmeyer2k/dcrypt

A petite library of encryption functionality for PHP

97772.6k1](/packages/mmeyer2k-dcrypt)[poly-crypto/poly-crypto

High-level cryptographic functions that are interoperable between NodeJS and PHP 7.1+

128.1k1](/packages/poly-crypto-poly-crypto)[miladrahimi/phpcrypt

Encryption, decryption, and hashing tools for PHP projects

3074.2k2](/packages/miladrahimi-phpcrypt)[payu/apple-pay

ApplePay Token Decoder

511.0M](/packages/payu-apple-pay)[acmephp/core

Raw implementation of the ACME protocol in PHP

401.0M7](/packages/acmephp-core)

PHPackages © 2026

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