PHP code example of maize-tech / laravel-encryptable
1. Go to this page and download the library: Download maize-tech/laravel-encryptable 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/ */
maize-tech / laravel-encryptable example snippets
return [
/*
|--------------------------------------------------------------------------
| Encryption key
|--------------------------------------------------------------------------
|
| The key used to encrypt data.
| Once defined, never change it or encrypted data cannot be correctly decrypted.
|
*/
'key' => env('ENCRYPTION_KEY'),
/*
|--------------------------------------------------------------------------
| Encryption cipher
|--------------------------------------------------------------------------
|
| The cipher used to encrypt data.
| Once defined, never change it or encrypted data cannot be correctly decrypted.
| Default value is the cipher algorithm used by default in MySQL.
|
*/
'cipher' => env('ENCRYPTION_CIPHER', 'aes-128-ecb'),
];