salernolabs / slzcrypt
Simple PHP wrapper around OpenSSL encryption.
v1.0.0
2019-08-03 19:19 UTC
Requires
- php: >=7.2
- ext-openssl: *
Requires (Dev)
- phpunit/phpunit: 6.5
This package is auto-updated.
Last update: 2024-11-29 05:21:16 UTC
README
Wrapper around OpenSSL encryption in PHP. Another breakout from my custom framework.
Install
Use composer
composer require salernolabs/slzcrypt
Usage
Instantiate a class with a key and encrypt or decrypt data.
$crypt = new \SalernoLabs\Slzcrypt\Crypt($key);
$encrypted = $crypt->encrypt($input);
$decrypted = $crypt->decrypt($encrypted);