mbing / openssl-cryptor
Provide a concise OpenSSL encryptor library.
dev-master
2019-07-28 03:18 UTC
This package is auto-updated.
Last update: 2025-04-28 16:22:01 UTC
README
Provide a concise OpenSSL encryptor library.
Description
OpenSSL Encryptor with 19 Lines of Code.
Install
Require this library through composer:
composer require mbing/openssl-cryptor
Example
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);