PHPackages                             dandjo/simple-obfuscator - 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. dandjo/simple-obfuscator

ActiveLibrary[Security](/categories/security)

dandjo/simple-obfuscator
========================

A simple class to encrypt and decrypt strings with a given salt (bijective).

1.0.2(7y ago)0747MITPHPPHP &gt;=5.6

Since Mar 25Pushed 7y agoCompare

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

READMEChangelogDependenciesVersions (4)Used By (0)

Simple Obfuscator
=================

[](#simple-obfuscator)

A simple class to encrypt and decrypt strings with a given salt (bijective).

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

[](#installation)

```
composer require dandjo/simple-obfuscator

```

Usage
-----

[](#usage)

Instantiate the Obfuscator.

```
// create a new instance
$salt = 'my-security-by-obscurity';
$obfuscator = new \Dandjo\SimpleObfuscator\SimpleObfuscator($salt);
```

Then you can encrypt your string and decrypt the generated hex string.

```
$encrypted = $obfuscator->encrypt('4711-foobar');  // $encrypted == "6f927ea5a49b7c"
$decrypted = $obfuscator->decrypt('6f927ea5a49b7c');  // $decrypted === "4711-foobar"
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity57

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 ~1 days

Total

3

Last Release

2609d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9775283af17974a5fff5640197e99cfdbd3be38dd0ff39ba65c21354ed371c09?d=identicon)[dandjo](/maintainers/dandjo)

---

Top Contributors

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

---

Tags

encryptdecryptobfuscatorreversibledecryptingenrypting

### Embed Badge

![Health badge](/badges/dandjo-simple-obfuscator/health.svg)

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

###  Alternatives

[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)[xxtea/xxtea

XXTEA is a fast and secure encryption algorithm. This is a XXTEA library for PHP.

11341.7k](/packages/xxtea-xxtea)[miladrahimi/phpcrypt

Encryption, decryption, and hashing tools for PHP projects

3171.5k2](/packages/miladrahimi-phpcrypt)[hemiframe/php-aes

PHP class for encrypt and decrypt data with AES algorithm

1030.3k](/packages/hemiframe-php-aes)

PHPackages © 2026

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