PHP code example of lablnet / encryption
1. Go to this page and download the library: Download lablnet/encryption library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
lablnet / encryption example snippets
use Lablnet\Encryption;
your-key');
//Encrypt the message
$encrypt = $encryption->encrypt("This is a text");
echo $encrypt;
use Lablnet\Encryption;
your-key');
//Decrypt the message
$decrypt = $encryption->decrypt($encrypt);
echo $decrypt;
use Lablnet\Encryption;
your-key','sodium');
use Lablnet\Encryption;
your-key','openssl');