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.4k↓50%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 1mo ago

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 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

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

1923d 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

[defuse/php-encryption

Secure PHP Encryption Library

3.9k162.4M214](/packages/defuse-php-encryption)[mews/purifier

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

2.0k16.7M113](/packages/mews-purifier)[robrichards/xmlseclibs

A PHP library for XML Security

41478.1M118](/packages/robrichards-xmlseclibs)[bjeavons/zxcvbn-php

Realistic password strength estimation PHP library based on Zxcvbn JS

87117.5M63](/packages/bjeavons-zxcvbn-php)[illuminate/encryption

The Illuminate Encryption package.

9229.7M280](/packages/illuminate-encryption)[paragonie/hidden-string

Encapsulate strings in an object to hide them from stack traces

7410.6M39](/packages/paragonie-hidden-string)

PHPackages © 2026

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