Encryption.php 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. namespace Config;
  3. use CodeIgniter\Config\BaseConfig;
  4. /**
  5. * Encryption configuration.
  6. *
  7. * These are the settings used for encryption, if you don't pass a parameter
  8. * array to the encrypter for creation/initialization.
  9. */
  10. class Encryption extends BaseConfig
  11. {
  12. /*
  13. |--------------------------------------------------------------------------
  14. | Encryption Key Starter
  15. |--------------------------------------------------------------------------
  16. |
  17. | If you use the Encryption class you must set an encryption key (seed).
  18. | You need to ensure it is long enough for the cipher and mode you plan to use.
  19. | See the user guide for more info.
  20. */
  21. public $key = '';
  22. /*
  23. |--------------------------------------------------------------------------
  24. | Encryption driver to use
  25. |--------------------------------------------------------------------------
  26. |
  27. | One of the supported drivers, eg 'OpenSSL' or 'Sodium'.
  28. | The default driver, if you don't specify one, is 'OpenSSL'.
  29. */
  30. public $driver = 'OpenSSL';
  31. }