PHPackages                             websvc/cryptor - 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. websvc/cryptor

ActiveLibrary[Security](/categories/security)

websvc/cryptor
==============

1.0.3(5y ago)03.7k↓48.3%MITPHPPHP &gt;=5.6

Since Feb 10Pushed 5y ago1 watchersCompare

[ Source](https://github.com/websvcPT/cryptor)[ Packagist](https://packagist.org/packages/websvc/cryptor)[ RSS](/packages/websvc-cryptor/feed)WikiDiscussions master Synced today

READMEChangelog (4)DependenciesVersions (5)Used By (0)

Cryptor
=======

[](#cryptor)

This package includes 2 versions of encryption.

- Cryptor

    - Encrypts and Decrypts using a provided key, and random IV
- CryptorFixedIv

    - Encrypts and Decrypts using a provided key, with fixed (provideable) IV

**Examples**:

```
$data = '{"val1":"xxxxxx"}';

$encryption_key = "964POMWCLRCP+A0ER3UMRPODSJGFV3843QĹK,FD9843MQewocm3c4";
$crypt = new CryptorFixedIv($encryption_key);
$encrypted = $crypt->encrypt($data);
echo "\nencrypted: " . $encrypted;

$crypt = new CryptorFixedIv($encryption_key);
echo "\ndecrypted: " . $crypt->decrypt($encrypted);
echo chr(10);

# encrypted: PAlHiBIcsH7A61fPySEasRurrYAGzAmTIMxTR82LB8w=
# decrypted: {"val1":"xxxxxx"}
```

**Compatible with JS**:

```
cd src/JS
npm i
node test.js
# Base64 Encrypted: PAlHiBIcsH7A61fPySEasRurrYAGzAmTIMxTR82LB8w=
# Decrypted Text: {"val1":"xxxxxx"}
```

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 87.5% 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 ~0 days

Total

4

Last Release

1970d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/82408143ff5ef3329c0fff88abd46366a84c7244a43e11dffe1de80f591ba904?d=identicon)[websvc](/maintainers/websvc)

---

Top Contributors

[![websvcPT](https://avatars.githubusercontent.com/u/1758961?v=4)](https://github.com/websvcPT "websvcPT (7 commits)")[![w4m-nelsondias](https://avatars.githubusercontent.com/u/150206383?v=4)](https://github.com/w4m-nelsondias "w4m-nelsondias (1 commits)")

### Embed Badge

![Health badge](/badges/websvc-cryptor/health.svg)

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

###  Alternatives

[mews/purifier

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

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

PHP Elliptic Curve Cryptography library

24820.0k38](/packages/paragonie-ecc)

PHPackages © 2026

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