PHPackages                             ranabd36/openssl-encryption - 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. ranabd36/openssl-encryption

ActiveLaravel-package[Security](/categories/security)

ranabd36/openssl-encryption
===========================

Secure Laravel OpenSSL Public Key/Private Key Encryption Library

1.0.0(7y ago)0641MITPHPPHP &gt;=5.4.0

Since Aug 9Pushed 7y ago1 watchersCompare

[ Source](https://github.com/ranabd36/openssl-encryption)[ Packagist](https://packagist.org/packages/ranabd36/openssl-encryption)[ Docs](https://github.com/ranabd36/openssl-encryption)[ RSS](/packages/ranabd36-openssl-encryption/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)DependenciesVersions (2)Used By (0)

OpenSSL Encryption
==================

[](#openssl-encryption)

Secure Laravel OpenSSL Public Key/Private Key Encryption Library.

Introduction
------------

[](#introduction)

OpenSSL Encryption is laravel public/private key pair encryption package. Which allow you to generate public/private key and encrypt and decrypt data with that public/private key.

You want to send/receive secure message to your friends. Then you have to generate public/private key and send the public key to your friends. Now one of your friends encrypt the message with your given public key and send it to you. You receive the message and decrypt the message with your private key.

If any attacker found the message but the attacker could not decrypt it without your private key. So don't share your private key with anyone.

Install (Laravel)
-----------------

[](#install-laravel)

Install via composer

```
composer require ranabd36/openssl-encryption:1.0.0

```

The package is auto-discovered and registered by default, but if you want to register it yourself:

Add service provider to `config/app.php` in `providers` section.

```
OpenSSLEncryption\Providers\OpenSSLEncryptionServiceProvider::class,
```

Add alias to `config/app.php` in `alias` section.

```
OpenSSLEncryption\OpenSSL::class,
```

To publish the config, run the vendor publish command:

```
php artisan vendor:publish --provider="OpenSSLEncryption\Providers\OpenSSLEncryptionServiceProvider"

```

Usage
-----

[](#usage)

To generate public/private key run the following artisan command :

```
php artisan openssl:key-generate
```

After generating the key you need to set your public/private key path to `config/openss.php` and passphrase (if you set passphrase while generating key).

Encrypt Data:

```
OpenSSL:encrypt('This text need to encrypt');
//This will return an encrypted data
```

Decrypt Data:

```
OpenSSL:decrypt('encrypted data');
//This will return plain text/data: This text need to encrypt
```

Upcoming Feature
----------------

[](#upcoming-feature)

Encrypt and decrypt with multiple public/private key.

License
-------

[](#license)

OpenSSL Encryption is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT)

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community8

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

Unknown

Total

1

Last Release

2882d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/8455801?v=4)[Ibrahim Al Naz Rana](/maintainers/ranabd36)[@ranabd36](https://github.com/ranabd36)

---

Top Contributors

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

---

Tags

laravelencryptionencryptdecrypt

### Embed Badge

![Health badge](/badges/ranabd36-openssl-encryption/health.svg)

```
[![Health](https://phpackages.com/badges/ranabd36-openssl-encryption/health.svg)](https://phpackages.com/packages/ranabd36-openssl-encryption)
```

###  Alternatives

[sbamtr/laravel-source-encrypter

Laravel Source Encrypter

58747.8k](/packages/sbamtr-laravel-source-encrypter)[nzo/url-encryptor-bundle

The NzoUrlEncryptorBundle is a Symfony Bundle used to Encrypt and Decrypt data and variables in the Web application or passed through URL

951.1M2](/packages/nzo-url-encryptor-bundle)[poly-crypto/poly-crypto

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

128.1k1](/packages/poly-crypto-poly-crypto)

PHPackages © 2026

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