Download the PHP package ranabd36/openssl-encryption without Composer
On this page you can find all versions of the php package ranabd36/openssl-encryption. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ranabd36/openssl-encryption
More information about ranabd36/openssl-encryption
Files in ranabd36/openssl-encryption
Package openssl-encryption
Short Description Secure Laravel OpenSSL Public Key/Private Key Encryption Library
License MIT
Homepage https://github.com/ranabd36/openssl-encryption
Informations about the package openssl-encryption
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
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.
Add alias to config/app.php
in alias
section.
To publish the config, run the vendor publish command:
Usage
To generate public/private key run the following artisan command :
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:
Decrypt Data:
Upcoming Feature
Encrypt and decrypt with multiple public/private key.
License
OpenSSL Encryption is open-sourced software licensed under the MIT license
All versions of openssl-encryption with dependencies
php Version >=5.4.0