2020-05-27 18:46:16 +02:00
|
|
|
<?php
|
2020-08-04 11:25:22 +00:00
|
|
|
|
2020-05-27 18:46:16 +02:00
|
|
|
namespace Config;
|
|
|
|
|
|
|
|
use CodeIgniter\Config\BaseConfig;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Encryption configuration.
|
|
|
|
*
|
|
|
|
* These are the settings used for encryption, if you don't pass a parameter
|
|
|
|
* array to the encrypter for creation/initialization.
|
|
|
|
*/
|
|
|
|
class Encryption extends BaseConfig
|
|
|
|
{
|
2020-06-10 15:00:12 +00:00
|
|
|
/*
|
2020-08-04 11:25:22 +00:00
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Encryption Key Starter
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| If you use the Encryption class you must set an encryption key (seed).
|
|
|
|
| You need to ensure it is long enough for the cipher and mode you plan to use.
|
|
|
|
| See the user guide for more info.
|
|
|
|
*/
|
2020-05-27 18:46:16 +02:00
|
|
|
|
2020-06-10 15:00:12 +00:00
|
|
|
public $key = '';
|
2020-05-27 18:46:16 +02:00
|
|
|
|
2020-06-10 15:00:12 +00:00
|
|
|
/*
|
2020-08-04 11:25:22 +00:00
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Encryption driver to use
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| One of the supported drivers, eg 'OpenSSL' or 'Sodium'.
|
|
|
|
| The default driver, if you don't specify one, is 'OpenSSL'.
|
|
|
|
*/
|
2020-06-10 15:00:12 +00:00
|
|
|
public $driver = 'OpenSSL';
|
2020-05-27 18:46:16 +02:00
|
|
|
}
|