hashing.php 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | LARAVEL8.0 框架 [ LARAVEL ][ RXThinkCMF ]
  4. // +----------------------------------------------------------------------
  5. // | 版权所有 2017~2021 LARAVEL研发中心
  6. // +----------------------------------------------------------------------
  7. // | 官方网站: http://www.laravel.cn
  8. // +----------------------------------------------------------------------
  9. // | Author: laravel开发员 <laravel.qq.com>
  10. // +----------------------------------------------------------------------
  11. return [
  12. /*
  13. |--------------------------------------------------------------------------
  14. | Default Hash Driver
  15. |--------------------------------------------------------------------------
  16. |
  17. | This option controls the default hash driver that will be used to hash
  18. | passwords for your application. By default, the bcrypt algorithm is
  19. | used; however, you remain free to modify this option if you wish.
  20. |
  21. | Supported: "bcrypt", "argon", "argon2id"
  22. |
  23. */
  24. 'driver' => 'bcrypt',
  25. /*
  26. |--------------------------------------------------------------------------
  27. | Bcrypt Options
  28. |--------------------------------------------------------------------------
  29. |
  30. | Here you may specify the configuration options that should be used when
  31. | passwords are hashed using the Bcrypt algorithm. This will allow you
  32. | to control the amount of time it takes to hash the given password.
  33. |
  34. */
  35. 'bcrypt' => [
  36. 'rounds' => env('BCRYPT_ROUNDS', 10),
  37. ],
  38. /*
  39. |--------------------------------------------------------------------------
  40. | Argon Options
  41. |--------------------------------------------------------------------------
  42. |
  43. | Here you may specify the configuration options that should be used when
  44. | passwords are hashed using the Argon algorithm. These will allow you
  45. | to control the amount of time it takes to hash the given password.
  46. |
  47. */
  48. 'argon' => [
  49. 'memory' => 1024,
  50. 'threads' => 2,
  51. 'time' => 2,
  52. ],
  53. ];