PHP code example of chicorycom / laravel-encrypt
1. Go to this page and download the library: Download chicorycom/laravel-encrypt 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/ */
chicorycom / laravel-encrypt example snippets
php artisan vendor:publish --provider="vendor\chicorycom\laravel-encrypt\EcryptServiceProvider" --tag="config"
.env CH_ENCRYPT=YOUR-KEY
$en = new Encryption();
$e = $en->Crypte('Hello Work);
UCRTNgx1B3A=
$en->Decrypte('UCRTNgx1B3A=');
Hello Work
Encrypte::Crypte('Hello Work');
WS0EYQB5AXY=
Encrypte::Decrypt('WS0EYQB5AXY=');
Hello Work