hashing.php 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: Merlin
  5. * Date: 2021/2/26
  6. * Time: 10:09
  7. */
  8. return [
  9. /*
  10. |--------------------------------------------------------------------------
  11. | Default Hash Driver
  12. |--------------------------------------------------------------------------
  13. |
  14. | This option controls the default hash driver that will be used to hash
  15. | passwords for your application. By default, the bcrypt algorithm is
  16. | used; however, you remain free to modify this option if you wish.
  17. |
  18. | Supported: "bcrypt", "argon"
  19. |
  20. */
  21. 'driver' => 'bcrypt',
  22. /*
  23. |--------------------------------------------------------------------------
  24. | Bcrypt Options
  25. |--------------------------------------------------------------------------
  26. |
  27. | Here you may specify the configuration options that should be used when
  28. | passwords are hashed using the Bcrypt algorithm. This will allow you
  29. | to control the amount of time it takes to hash the given password.
  30. |
  31. */
  32. 'bcrypt' => [
  33. 'rounds' => env('BCRYPT_ROUNDS', 10),
  34. ],
  35. /*
  36. |--------------------------------------------------------------------------
  37. | Argon Options
  38. |--------------------------------------------------------------------------
  39. |
  40. | Here you may specify the configuration options that should be used when
  41. | passwords are hashed using the Argon algorithm. These will allow you
  42. | to control the amount of time it takes to hash the given password.
  43. |
  44. */
  45. 'argon' => [
  46. 'memory' => 1024,
  47. 'threads' => 2,
  48. 'time' => 2,
  49. ],
  50. ];