hashing.php 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <?php
  2. return [
  3. /*
  4. |--------------------------------------------------------------------------
  5. | Default Hash Driver
  6. |--------------------------------------------------------------------------
  7. |
  8. | This option controls the default hash driver that will be used to hash
  9. | passwords for your application. By default, the bcrypt algorithm is
  10. | used; however, you remain free to modify this option if you wish.
  11. |
  12. | Supported: "bcrypt", "argon"
  13. |
  14. */
  15. 'driver' => 'bcrypt',
  16. /*
  17. |--------------------------------------------------------------------------
  18. | bcrypt options
  19. |--------------------------------------------------------------------------
  20. |
  21. | We could define the number of rounds the bcrypt algo will be using.
  22. |
  23. | The two digit cost parameter is the base-2 logarithm of the iteration
  24. | count for the underlying Blowfish-based hashing algorithmeter and must
  25. | be in range 04-31, values outside this range will cause crypt() to fail
  26. |
  27. | Default: 10
  28. */
  29. 'bcrypt' => [
  30. 'rounds' => 10
  31. ],
  32. /*
  33. |--------------------------------------------------------------------------
  34. | argon options
  35. |--------------------------------------------------------------------------
  36. |
  37. | These settings could be adjusted depending on your hardware.
  38. |
  39. | time: Maximum amount of time it may take to compute the Argon2 hash.
  40. | (default: 2)
  41. |
  42. | memory: Maximum memory (in bytes) that may be used to compute the Argon2 hash
  43. | (default : 1024)
  44. |
  45. | threads: Number of threads to use for computing the Argon2 hash
  46. | (default : 2)
  47. |
  48. */
  49. 'argon' => [
  50. 'time' => 2,
  51. 'memory' => 1024,
  52. 'threads' => 2
  53. ]
  54. ];