| Recommend this page to a friend! |
| Packages of Muhammad Umer Farooq | PHP Encryption Library | readme.md | Download |
|
|||||||||||||||||||||
PHP EncryptionEncryption in PHP. Requirement
InsallationInstalling this package is very simple, first ensure you have the right PHP version and composer installed then in your terminal/(command prompt) run: <?php use Lablnet\Encryption; require '../vendor/autoload.php'; $encryption = new Encryption('your-key'); //Encrypt the message $encrypt = $encryption->encrypt("This is a text"); echo $encrypt; <?php use Lablnet\Encryption; require '../vendor/autoload.php'; $encryption = new Encryption('your-key'); //Decrypt the message $decrypt = $encryption->decrypt($encrypt); echo $decrypt; <?php use Lablnet\Encryption; require '../vendor/autoload.php'; $encryption = new Encryption('your-key','sodium'); <?php use Lablnet\Encryption; require '../vendor/autoload.php'; $encryption = new Encryption('your-key','openssl');
Thanks you so much. DisclaimerI don't Accept any responsibility for any illegal usage |