PHPackages                             psecio/session-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. [Security](/categories/security)
4. /
5. psecio/session-encrypt

ActiveLibrary[Security](/categories/security)

psecio/session-encrypt
======================

An encrypted session handler for PHP

0.1(12y ago)6191[4 issues](https://github.com/psecio/session-encrypt/issues)MIT

Since Mar 22Pushed 11y ago2 watchersCompare

[ Source](https://github.com/psecio/session-encrypt)[ Packagist](https://packagist.org/packages/psecio/session-encrypt)[ Docs](https://github.com/psecio/session-encrypt.git)[ RSS](/packages/psecio-session-encrypt/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (2)Used By (0)

SessionEncrypt
==============

[](#sessionencrypt)

This is a custom encrypted session handler for PHP (using `session_set_save_handler`). It is compatible with just about any version of PHP out there and doesn't use the newer `SessionHandler`interface.

### Example Usage

[](#example-usage)

```

```

The value for `$salt` should be as randomized as possible as it's used to encrypt the data with `mcrypt_decrypt`. The handler uses `MCRYPT_RIJNDAEL_256` and `MCRYPT_MODE_CBC` to encrypt the data. It will store the session files in the path defined by the `session.save_path` or, if it's not set, will default to `/tmp`.

**NOTE:** Because of the need for encryption in this handler, you are *required* to have the `mcrypt` functionality included in your PHP installation.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance7

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity53

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

4436d ago

### Community

Maintainers

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

---

Top Contributors

[![enygma](https://avatars.githubusercontent.com/u/66796?v=4)](https://github.com/enygma "enygma (15 commits)")

---

Tags

encryptionencrypthandlersession

### Embed Badge

![Health badge](/badges/psecio-session-encrypt/health.svg)

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

###  Alternatives

[defuse/php-encryption

Secure PHP Encryption Library

3.9k162.4M214](/packages/defuse-php-encryption)[paragonie/ciphersweet

Searchable field-level encryption library for relational databases

4641.2M21](/packages/paragonie-ciphersweet)[sbamtr/laravel-source-encrypter

Laravel Source Encrypter

58545.6k](/packages/sbamtr-laravel-source-encrypter)[nzo/url-encryptor-bundle

The NzoUrlEncryptorBundle is a Symfony Bundle used to Encrypt and Decrypt data and variables in the Web application or passed through URL

961.0M2](/packages/nzo-url-encryptor-bundle)

PHPackages © 2026

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