PHPackages                             fikoborizqy/bose-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. [Security](/categories/security)
4. /
5. fikoborizqy/bose-crypt

ActiveLibrary[Security](/categories/security)

fikoborizqy/bose-crypt
======================

Cryptography (Borizqy Secure Encryption) encrypts by private-key you decided, decrypts by private-key you decided and public-key that was generated once you encrypt.

1.3(7y ago)04MITPHP

Since Mar 27Pushed 7y agoCompare

[ Source](https://github.com/fiko/bose-crypt)[ Packagist](https://packagist.org/packages/fikoborizqy/bose-crypt)[ RSS](/packages/fikoborizqy-bose-crypt/feed)WikiDiscussions 1.3 Synced today

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

bose-crypt
==========

[](#bose-crypt)

Encrypt and Decrypt string by giving private-key before doing encryption, and insert public-key &amp; private-key for decrypting.

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

[](#installation)

You can install this directly from github, or you can install it via composer. But, we recommend you to install this library via composer.

1. Install composer
    If you don't know how to install composer, you can read this: [Install Composer](https://getcomposer.org/download/)
2. Make your project directory / go to your project directory.
3. Install by composer
    Open your terminal, go to your project directory, and paste this code:

```
composer require fikoborizqy/bose-crypt

```

4. Include the composer `autoload.php`
    Open your php project file, and put this on top of your code.

```
require_once('vendor/autoload.php');

```

How to use?
-----------

[](#how-to-use)

When you encrypting data, you need to decide private-key for the plain-text. Let's crack on:

1. use Bose Class by the namespace
    copy this before you encrypting data! You can change this `$class` variable as you want.

```
$class = new \Borizqy\Bose\Bose();

```

2. Encrypting data
    To encrypt data, you need to decide the private-key. This private key will be used to encrypt and decrypt data:

```
$example = $class->encrypt("text example", "this my key", "a", "y");

```

The output will be of encryption above will be like this:

```
Object (
    [plain_text] => text example
    [cipher_text] => 01101000101100011000101101110011111001111000010010010101111010111111101111101001111101011000011110000111010010111010101
    [public_key] => 71f7b10vTacnxhz10PgRNQLca10C4amZveG10vlIg7ygo10DQMy72cc10IAQAOJya10u2KMZZ1F10E2K0VHbY10G2oGPVPQ10u2KMZZ1F10E1Rr8N7410I1DvgxBE100iCUmdg1
    [private_key] => this my key
)

```

3. Decrypting data
    To decrypt data, you need to prepare cipher-text, public-key, and private-key.

```
$example = $class->decrypt("01101000101100011000101101110011111001111000010010010101111010111111101111101001111101011000011110000111010010111010101", "this my key", '71f7b10vTacnxhz10PgRNQLca10C4amZveG10vlIg7ygo10DQMy72cc10IAQAOJya10u2KMZZ1F10E2K0VHbY10G2oGPVPQ10u2KMZZ1F10E1Rr8N7410I1DvgxBE100iCUmdg1');

```

The output will be of decryption above will be like this:

```
Object (
    [plain_text] => text example
    [cipher_text] => 01101000101100011000101101110011111001111000010010010101111010111111101111101001111101011000011110000111010010111010101
    [public_key] => 71f7b10vTacnxhz10PgRNQLca10C4amZveG10vlIg7ygo10DQMy72cc10IAQAOJya10u2KMZZ1F10E2K0VHbY10G2oGPVPQ10u2KMZZ1F10E1Rr8N7410I1DvgxBE100iCUmdg1
    [private_key] => this my key
)

```

License
-------

[](#license)

[MIT](https://choosealicense.com/licenses/mit/)

###  Health Score

26

—

LowBetter than 40% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity65

Established project with proven stability

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

Total

6

Last Release

2689d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/32075735?v=4)[Fiko Borizqy](/maintainers/fiko)[@fiko](https://github.com/fiko)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/fikoborizqy-bose-crypt/health.svg)

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

###  Alternatives

[phpids/phpids

PHPIDS (PHP-Intrusion Detection System) is a simple to use, well structured, fast and state-of-the-art security layer for your PHP based web application

791150.0k2](/packages/phpids-phpids)[paragonie/ecc

PHP Elliptic Curve Cryptography library

25866.3k44](/packages/paragonie-ecc)[sansec/magento2-module-shield

15218.6k](/packages/sansec-magento2-module-shield)[nicobleiler/php-passphrase

Passphrase generator with Laravel integration, inspired by Bitwarden. Uses the EFF long word list by default with support for custom wordlists.

4912.6k](/packages/nicobleiler-php-passphrase)[dwgebler/encryption

Encryption wrapper for PHP using libsodium — simple API for symmetric and asymmetric encryption, password hashing, digital signing, and message authentication.

317.5k](/packages/dwgebler-encryption)

PHPackages © 2026

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