PHPackages                             fruit/cryptokit - 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. fruit/cryptokit

ActiveLibrary[Security](/categories/security)

fruit/cryptokit
===============

Cryptography helpers of Fruit framework

0.0.4(9y ago)0571PHP

Since Nov 12Pushed 9y ago1 watchersCompare

[ Source](https://github.com/fruit-php/cryptokit)[ Packagist](https://packagist.org/packages/fruit/cryptokit)[ RSS](/packages/fruit-cryptokit/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (8)Versions (6)Used By (1)

CryptoKit
=========

[](#cryptokit)

This package is part of Fruit Framework.

CryptoKit abstracts crypter, which encrypt and decrypt your data, and hash, which generates hashsum.

CryptoKit is still under development, not usable now.

Synopsis
--------

[](#synopsis)

### Encrypt and decrypt some data

[](#encrypt-and-decrypt-some-data)

```
$data = 'hello world';
$crypter = new Fruit\CryptoKit\ROT13;

$encrypted = $crypter->encrypt($data);
$data = $crypter->decrypt($encrypted);
```

### Encrypt or decrypt via stream

[](#encrypt-or-decrypt-via-stream)

```
stream_filter_register('myfilter', 'Fruit\CryptoKit\CryptoFilter');
$f = fopen('myfile.txt', 'r');
stream_filter_append($f, 'myfilter', STREAM_FILTER_READ, [
	'crypter' => new Fruit\CryptoKit\ROT13,
	'crypt_type' => 'encrypt',
]);
$encrypted = stream_get_contents($f);
fclose($f);
```

### Compute hashsum

[](#compute-hashsum)

```
$h = new Fruit\CryptoKit\Hash('md5');
$hashsum = $h->update($data)->sum();
```

### Compute hashsum via stream

[](#compute-hashsum-via-stream)

```
$f = fopen('myfile', 'r');
$h = new Fruit\CryptoKit\Hash('md5');
$hashsum = $h->updateStream($f)->sum();
fclose($f);
```

License
-------

[](#license)

Any version of MIT, GPL or LGPL.

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community9

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

Total

5

Last Release

3568d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1ef743a4ba2b41bc6643ca3c4d71f4608abee7dc617efa09b18e3fa0a44aeda8?d=identicon)[Ronmi](/maintainers/Ronmi)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/fruit-cryptokit/health.svg)

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

###  Alternatives

[mews/purifier

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

2.0k18.0M138](/packages/mews-purifier)[paragonie/ecc

PHP Elliptic Curve Cryptography library

25772.0k36](/packages/paragonie-ecc)

PHPackages © 2026

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