您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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. }