PHPackages                             rikby/crypter - 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. rikby/crypter

ActiveLibrary[Security](/categories/security)

rikby/crypter
=============

Simple tool for encrypting/decrypting a string. It based upon system ID.

1.0.0(9y ago)271GPL-3.0PHPPHP &gt;=5.4

Since Aug 22Pushed 9y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (2)Used By (0)

String Crypter
==============

[](#string-crypter)

Simple tool for encrypting/decrypting a string. It based upon system ID.

```
$ composer require rikby/crypter
```

Using example:

```
/**
 * Class Password
 */
class Password extends Crypter implements CrypterInterface
{
    /**
     * Get password
     *
     * @param string $trackerType
     * @return null|string
     * @throws \Exception
     */
    public function getPassword($trackerType)
    {
        try {
            //get saved encrypted password
            $password = SomeClass::getPostPassword();
            if (!$password) {
                return null;
            }

            return $this->decrypt($password) ?: null;
        } catch (\Exception $e) {
            throw new UserException('Cannot get password of tracker.', 0, $e);
        }
    }

    /**
     * Replace strange \000 character
     *
     * {@inheritdoc}
     */
    public function decrypt($string, $key = null)
    {
        $password = parent::decrypt($string, $key);

        /**
         * Unknown bug in PhpStorm
         * Only PHPStorm adds \0 to the tail of password
         * Perhaps PHP versions conflict
         */
        return rtrim($password, "\000");
    }
}
```

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

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

3600d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/79af1435892dd9111c06a5e386fd69b577a71f3fbcc3f20aab50db8e5abc8ce2?d=identicon)[andkirby](/maintainers/andkirby)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/rikby-crypter/health.svg)

```
[![Health](https://phpackages.com/badges/rikby-crypter/health.svg)](https://phpackages.com/packages/rikby-crypter)
```

###  Alternatives

[mews/purifier

Laravel 5/6/7/8/9/10 HtmlPurifier Package

2.0k18.7M139](/packages/mews-purifier)[paragonie/ecc

PHP Elliptic Curve Cryptography library

24820.0k36](/packages/paragonie-ecc)

PHPackages © 2026

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