PHPackages                             delboy1978uk/bone-crypt - 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. delboy1978uk/bone-crypt

ActiveLibrary

delboy1978uk/bone-crypt
=======================

An openssl based encryption/decryption class

v1.0.2(4y ago)02MITPHP

Since Aug 29Pushed 4y ago1 watchersCompare

[ Source](https://github.com/delboy1978uk/bone-crypt)[ Packagist](https://packagist.org/packages/delboy1978uk/bone-crypt)[ RSS](/packages/delboy1978uk-bone-crypt/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (2)Versions (4)Used By (0)

bone-crypt
==========

[](#bone-crypt)

[![build status](https://github.com/delboy1978uk/bone-crypt/actions/workflows/master.yml/badge.svg)](https://github.com/delboy1978uk/bone-crypt/actions/workflows/master.yml/badge.svg) [![Code Coverage](https://camo.githubusercontent.com/d927f186597f0055f7937eb8b340dec4518f4151070be35c6a5db55f9a566126/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f64656c626f7931393738756b2f626f6e652d63727970742f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/delboy1978uk/bone-crypt/?branch=master) [![Scrutinizer Code Quality](https://camo.githubusercontent.com/352d023ecfd9c83ad391e7791272870320fc044dff199fcd0d092af88fd00fa7/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f64656c626f7931393738756b2f626f6e652d63727970742f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/delboy1978uk/bone-crypt/?branch=master)
An openssl based encryption/decryption class

installation
------------

[](#installation)

Install via composer

```
composer require delboy1978uk/bone-crypt
```

usage
-----

[](#usage)

To encrypt and decrypt a value

```
use Bone\Crypt\Crypt;

$crypt = new Crypt();

// returns array with key, IV, tag, and ciphertext
$encrypted = $crypt->encrypt('Super secret data');

// Take the key out of the array and json encode
$key = $encrypted['key'];
unset($encrypted['key']);

// this is your payload. Save the key somewhere!
$json = \json_encode($encrypted);

// To decrypt
$result = $this->crypt->decrypt($json, $key); // 'Super secret data'
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

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

Total

3

Last Release

1642d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f20859ab2082170605b5961bb1f12493b087b08b7efa3ab0087ddbe0c9e0a94c?d=identicon)[delboy1978uk](/maintainers/delboy1978uk)

---

Top Contributors

[![delboy1978uk](https://avatars.githubusercontent.com/u/2684575?v=4)](https://github.com/delboy1978uk "delboy1978uk (5 commits)")

###  Code Quality

TestsCodeception

### Embed Badge

![Health badge](/badges/delboy1978uk-bone-crypt/health.svg)

```
[![Health](https://phpackages.com/badges/delboy1978uk-bone-crypt/health.svg)](https://phpackages.com/packages/delboy1978uk-bone-crypt)
```

PHPackages © 2026

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