ranabd36/openssl-encryption
Larablocks Analysis
ranabd36/openssl-encryption works with any PHP project: the latest release (1.0.0, Aug 9, 2018) doesn't depend on Laravel.
Recommendation checks
Not advisedNot advised: no release or commit in over 2 years.
- No release or commit in over 2 years
- No release in the last 12 months (last: Aug 9, 2018)
- 0 downloads a month (needs 10,000)
- 0 GitHub stars (needs 100)
State
Likely abandoned- No release or commit in over 2 years.
- Last stable release: Aug 9, 2018.
- No releases in the last 12 months.
- First released: Aug 9, 2018.
- 0 open issues on GitHub.
Data from Packagist and GitHub, checked by Larablocks on Dec 1, 2026.
| Install | |
|---|---|
composer require ranabd36/openssl-encryption |
|
| Latest Version: | 1.0.0 |
| PHP: | >=5.4.0 |
| License: | MIT |
| Last Updated: | Aug 9, 2018 |
| Links: | GitHub · Packagist |
OpenSSL Encryption
Secure Laravel OpenSSL Public Key/Private Key Encryption Library.
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 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
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
Encrypt and decrypt with multiple public/private key.
License
OpenSSL Encryption is open-sourced software licensed under the MIT license
Alternatives to ranabd36/openssl-encryption
An Optimus bridge for Laravel. Id obfuscation based on Knuth's multiplicative ha...
Version History
| Version | Released | PHP | License |
|---|---|---|---|
| 1.0.0 | >=5.4.0 | MIT |