encrypt.php 822 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. /**
  3. * The following options must be set:
  4. * string type Driver Type
  5. * string key Secret Passphrase
  6. */
  7. return [
  8. 'default' => [
  9. 'type' => 'openssl',
  10. 'key' => NULL,
  11. 'cipher' => Encrypt_Engine_Openssl::AES_256_CBC
  12. ],
  13. // 'sodium' => [
  14. // 'type' => 'sodium',
  15. // 'key' => NULL,
  16. // 'cipher' => Encrypt_Engine_Sodium::AES_256_GCM
  17. // ]
  18. // /**
  19. // * Mcrypt is deprecated and should not be used,
  20. // * however it requires additional options:
  21. // *
  22. // * integer mode encryption mode, one of MCRYPT_MODE_*
  23. // * integer cipher encryption cipher, one of the Mcrypt cipher constants
  24. // */
  25. // 'mcrypt' => [
  26. // 'type' => 'mcrypt',
  27. // 'key' => NULL,
  28. // 'cipher' => MCRYPT_RIJNDAEL_128,
  29. // 'mode' => MCRYPT_MODE_CBC,
  30. // ],
  31. ];