No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

68 líneas
1.9KB

  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. * @var string
  22. */
  23. public $key = '';
  24. /**
  25. * --------------------------------------------------------------------------
  26. * Encryption Driver to Use
  27. * --------------------------------------------------------------------------
  28. *
  29. * One of the supported encryption drivers.
  30. *
  31. * Available drivers:
  32. * - OpenSSL
  33. * - Sodium
  34. *
  35. * @var string
  36. */
  37. public $driver = 'OpenSSL';
  38. /**
  39. * --------------------------------------------------------------------------
  40. * SodiumHandler's Padding Length in Bytes
  41. * --------------------------------------------------------------------------
  42. *
  43. * This is the number of bytes that will be padded to the plaintext message
  44. * before it is encrypted. This value should be greater than zero.
  45. *
  46. * See the user guide for more information on padding.
  47. *
  48. * @var int
  49. */
  50. public $blockSize = 16;
  51. /**
  52. * --------------------------------------------------------------------------
  53. * Encryption digest
  54. * --------------------------------------------------------------------------
  55. *
  56. * HMAC digest to use, e.g. 'SHA512' or 'SHA256'. Default value is 'SHA512'.
  57. *
  58. * @var string
  59. */
  60. public $digest = 'SHA512';
  61. }