PHPackages                             jeffreyvanrossum/wp-simple-encryption - 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. jeffreyvanrossum/wp-simple-encryption

ActiveLibrary[Security](/categories/security)

jeffreyvanrossum/wp-simple-encryption
=====================================

Package to allow for simple string encryption and decryption.

0.1.0(2y ago)1162MITPHPPHP ^7.4|^8.0

Since Sep 12Pushed 2y ago1 watchersCompare

[ Source](https://github.com/jeffreyvr/wp-simple-encryption)[ Packagist](https://packagist.org/packages/jeffreyvanrossum/wp-simple-encryption)[ RSS](/packages/jeffreyvanrossum-wp-simple-encryption/feed)WikiDiscussions main Synced 1mo ago

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

[![vanrossum.dev Logo](https://raw.githubusercontent.com/jeffreyvr/vanrossum.dev-art/main/logo.svg)](https://vanrossum.dev)

[![Total Downloads](https://camo.githubusercontent.com/ef17a7cf8d63df356c9ba2fb4ae285db519fae9f92fd969046ea08c0b0a3c52d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6a65666672657976616e726f7373756d2f77702d73696d706c652d656e6372797074696f6e)](https://packagist.org/packages/jeffreyvanrossum/wp-simple-encryption)[![Latest Stable Version](https://camo.githubusercontent.com/ebfab7655f192093842990b1e04a99c8b168a248cc748d167746759df9735c88/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6a65666672657976616e726f7373756d2f77702d73696d706c652d656e6372797074696f6e)](https://packagist.org/packages/jeffreyvanrossum/wp-simple-encryption)[![License](https://camo.githubusercontent.com/d137b67193558bc023ed343fa936e9fae947068b8e0339bbf94f5ab036d1c261/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6a65666672657976616e726f7373756d2f77702d73696d706c652d656e6372797074696f6e)](https://packagist.org/packages/jeffreyvanrossum/wp-simple-encryption)

WP Simple Encryption
====================

[](#wp-simple-encryption)

A simple package to encrypt and decrypt strings in WordPress.

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

[](#installation)

```
composer require jeffreyvanrossum/wp-simple-encryption
```

How it works
------------

[](#how-it-works)

This package attempts to write a constant to your site's `wp-config.php` where the secret key is stored.

You may define the name of this constant when instantiating the `WPSimpleEncryption` class.

This package utilizes [php-encryption](https://github.com/defuse/php-encryption/) for the encryption and decryption.

Usage
-----

[](#usage)

```
use Jeffreyvr\WPSimpleEncryption\WPSimpleEncryption;

$wp_simple_encryption = new WPSimpleEncryption('YOUR_SECRET_KEY_CONSTANT');

$wp_simple_encryption->encrypt('some unencrypted string');

$wp_simple_encryption->decrypt('some encrypted string');
```

Contributors
------------

[](#contributors)

- [Jeffrey van Rossum](https://github.com/jeffreyvr)
- [All contributors](https://github.com/jeffreyvr/wp-simple-encryption/graphs/contributors)

License
-------

[](#license)

MIT. Please see the [License File](/LICENSE) for more information.

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 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

970d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/66ca71465f93459010e10f39821b541f1c00c61233c48bcda0cea8a8d6fb6988?d=identicon)[jeffreyvr](/maintainers/jeffreyvr)

---

Top Contributors

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

---

Tags

phpwordpress

###  Code Quality

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/jeffreyvanrossum-wp-simple-encryption/health.svg)

```
[![Health](https://phpackages.com/badges/jeffreyvanrossum-wp-simple-encryption/health.svg)](https://phpackages.com/packages/jeffreyvanrossum-wp-simple-encryption)
```

###  Alternatives

[paragonie/password_lock

Wraps Bcrypt-SHA2 in Authenticated Encryption

19348.7k1](/packages/paragonie-password-lock)[psecio/secure_dotenv

An encrypted environment configuration handler

11537.7k2](/packages/psecio-secure-dotenv)[thomaswelton/laravel-mcrypt-faker

Allows installation of Laravel where the PHP Mcrypt extension is not available. Provides encryption using OpenSSL, or by disabling encryption entierly.

113.8k](/packages/thomaswelton-laravel-mcrypt-faker)

PHPackages © 2026

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