PHPackages                             pentagonal/simple\_encrypt - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. pentagonal/simple\_encrypt

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

pentagonal/simple\_encrypt
==========================

Simple Encryption utility

1.0.0(8y ago)125381MITPHPPHP &gt;=5.4.0

Since Aug 21Pushed 8y agoCompare

[ Source](https://github.com/pentagonal/SimpleEncryption)[ Packagist](https://packagist.org/packages/pentagonal/simple_encrypt)[ Docs](https://www.pentagonal.org/)[ RSS](/packages/pentagonal-simple-encrypt/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (1)

Pentagonal Simple Encryption
============================

[](#pentagonal-simple-encryption)

Another Small Encryption Helper

[![Build Status](https://camo.githubusercontent.com/e410716079c9990a92e08bcdd3691b2e155d1d37d75645160fc0ec28d3dc84cb/68747470733a2f2f7472617669732d63692e6f72672f70656e7461676f6e616c2f53696d706c65456e6372797074696f6e2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/pentagonal/SimpleEncryption)

Encrypt string or another type of value to encryption. by default encryption use `openssl` with default `AES-256-CBC`and another encryption using alternative of `str_rot13` and encoded by `base64_encode`

Encryption
----------

[](#encryption)

```
/**
 * Using default encryption mcrypt
 */
Pentagonal\SimpleEncryption\Encryption::encrypt('string to encrypt', 'saltkey');

/**
 * Using alternative type
 */
Pentagonal\SimpleEncryption\Encryption::altEncrypt('string to encrypt', 'saltkey');
```

Decryption
----------

[](#decryption)

```
/**
 * Decrypt encrypted string with auto detect encryption use
 */
Pentagonal\SimpleEncryption\Encryption::decrypt('string to decrypt', 'saltkey');

// or can use
Pentagonal\SimpleEncryption\Encryption::altDecrypt('string to decrypt', 'saltkey');
```

Install Using Composer
----------------------

[](#install-using-composer)

[Composer](https://getcomposer.org) is handy tool for adding library easily from packagist and another resource to your application. Get Install on here :  and install on your OS.

```
{
  "require": {
        "pentagonal/simple_encrypt" : "~1.0"
  }
}
```

Or directly install via `terminal`

```
composer require pentagonal/simple_encrypt
```

Requirements
------------

[](#requirements)

This library require php 5.4.0 or later. Suggest to enable `openssl` on your php configuration.

License
-------

[](#license)

MIT License

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity58

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

Unknown

Total

1

Last Release

3189d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e9ef5a4dbd9c0d974af6124d09d570282b6cd4494c4f31c04ae299855e9ba6f3?d=identicon)[pentagonal](/maintainers/pentagonal)

---

Top Contributors

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

---

Tags

utilityencryptionlibraryopenssl

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/pentagonal-simple-encrypt/health.svg)

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

###  Alternatives

[league/iso3166

ISO 3166-1 PHP Library

69536.3M116](/packages/league-iso3166)[maciejczyzewski/bottomline

A full-on PHP manipulation utility belt that provides support for working with arrays, objects, and iterables; a lodash or underscore equivalent for PHP.

477631.4k10](/packages/maciejczyzewski-bottomline)[phpcsstandards/phpcsutils

A suite of utility functions for use with PHP\_CodeSniffer

6233.4M58](/packages/phpcsstandards-phpcsutils)[me-io/php-lodash

A full-on PHP manipulation utility-belt that provides support for the usual functional.

38100.0k](/packages/me-io-php-lodash)[kisma/kisma

PHP Utility Belt

178.5k8](/packages/kisma-kisma)[tajawal/lodash-php

A full-on PHP manipulation utility-belt that provides support for the usual functional.

232.6k1](/packages/tajawal-lodash-php)

PHPackages © 2026

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