PHPackages                             tpkarras/kef - 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. tpkarras/kef

ActiveLibrary[Security](/categories/security)

tpkarras/kef
============

An encryption format designed for storing encrypted data within a range of a specific number of bytes.

1.5.25.1(2mo ago)212GPL-3.0-or-laterPHPPHP &gt;=7.4.0

Since May 17Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/tpkarras/KEF)[ Packagist](https://packagist.org/packages/tpkarras/kef)[ Docs](https://github.com/tpkarras/KEF)[ RSS](/packages/tpkarras-kef/feed)WikiDiscussions main Synced 1w ago

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

KEF
===

[](#kef)

[![Total Downloads](https://camo.githubusercontent.com/1f0782901c3c946c6bb3186c71cc89407ce757c78659b40aad6e2a78d762fd39/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f74706b61727261732f6b6566)](https://packagist.org/packages/tpkarras/kef)[![Latest Stable Version](https://camo.githubusercontent.com/12446bcf8e2de26ca74ae453757b6ac2089cff656c7d044376b9f428ff62984c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f74706b61727261732f6b6566)](https://packagist.org/packages/tpkarras/kef)[![PHP Version Required](https://camo.githubusercontent.com/b24526f8ece446c41300c490983d293ba2c0309e7c9a48d69998c7f7d4f5c9c7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646570656e64656e63792d762f74706b61727261732f6b65662f706870)](https://packagist.org/packages/tpkarras/kef)

**KEF (Karras Encryption Format)** is an encryption format designed for storing encrypted data.

Its intended purpose is to allow applications to be able to retrieve ranges of data without decrypting the entirety of the data.

KEF is released under the GNU General Public License v3.0.

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

[](#installation)

If you have composer, you can use the command below.

```
composer require tpkarras/kef
```

Otherwise you can extract the files from the "bin" directory and place them anywhere within your PHP project.

Minimum Requirements
--------------------

[](#minimum-requirements)

KEF requires a PHP version greater than or equal to 7.4.0.

Memory size is dependent on the buffer size set and the size of the data fed to the encryption function, you can experiment with the "memory\_limit" directive found in "php.ini" in order to find the right memory size for your usage needs.

Documentation
-------------

[](#documentation)

All documentation on how to use KEF and how to implement KEF in your project is available on the [wiki](https://github.com/tpkarras/KEF/wiki).

###  Health Score

37

—

LowBetter than 81% of packages

Maintenance84

Actively maintained with recent releases

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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

Total

4

Last Release

82d ago

PHP version history (2 changes)1.0.0PHP &gt;=5.6.0

1.5.0PHP &gt;=7.4.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/18634643?v=4)[tpkarras](/maintainers/tpkarras)[@tpkarras](https://github.com/tpkarras)

---

Top Contributors

[![tpkarras](https://avatars.githubusercontent.com/u/18634643?v=4)](https://github.com/tpkarras "tpkarras (67 commits)")

---

Tags

cryptographyencryptionformatopensslcryptographyencryptionformatopenssldecryption

### Embed Badge

![Health badge](/badges/tpkarras-kef/health.svg)

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

###  Alternatives

[defuse/php-encryption

Secure PHP Encryption Library

3.9k180.2M276](/packages/defuse-php-encryption)[vlucas/pikirasa

PKI public/private RSA key encryption using the OpenSSL extension

104106.2k1](/packages/vlucas-pikirasa)[camcima/dukpt-php

DUKPT implementation in PHP

25154.3k](/packages/camcima-dukpt-php)[poly-crypto/poly-crypto

High-level cryptographic functions that are interoperable between NodeJS and PHP 7.1+

128.2k1](/packages/poly-crypto-poly-crypto)[legierski/aes

OpenSSL-compatible AES library

1142.4k1](/packages/legierski-aes)

PHPackages © 2026

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