Provide a concise OpenSSL encryptor library.
OpenSSL Encryptor with 19 Lines of Code.
Require this library through composer:
composer require mbing/openssl-cryptor
use mbing\OpensslCryptor\Cryptor;
$encodeData = 'Here is the data to be encrypted.';
$key = 'eiort832j39fe8we';
//encrypto
$encrypted = Cryptor::Encrypt($encodeData, $key);
//decrypto
$decrypted = Cryptor::Decrypt($encrypted, $key);