user_custom_pass_hash_params_test.services.yml

Same filename in other branches
  1. 10 core/modules/user/tests/modules/user_custom_pass_hash_params_test/user_custom_pass_hash_params_test.services.yml
core/modules/user/tests/modules/user_custom_pass_hash_params_test/user_custom_pass_hash_params_test.services.yml

File

core/modules/user/tests/modules/user_custom_pass_hash_params_test/user_custom_pass_hash_params_test.services.yml

View source
  1. services:
  2. # The first argument of the hashing service (constructor of PhpPassword) is
  3. # the hashing algorithm. This should be set to PASSWORD_DEFAULT for hash
  4. # params test (In PHP 8, PASSWORD_DEFAULT equals PASSWORD_BCRYPT).
  5. #
  6. # The second argument of the hashing service (constructor of PhpPassword)
  7. # specifies the options passed to password_hash(). In PHP 8 the default 'cost'
  8. # value is 10. For the hash parameter test, the value must be higher than the
  9. # default value.
  10. #
  11. # Future versions of PHP may increase this value in order to counteract
  12. # increases in the speed and power of computers available to crack the hashes.
  13. # It is necessary to track changes of the default options when new versions
  14. # of PHP are released and increment the cost parameter accordingly.
  15. password:
  16. class: Drupal\Core\Password\PhpPassword
  17. arguments:
  18. - "2y"
  19. - { cost: 11 }

Services

Title Deprecated Summary
password Drupal\Core\Password\PhpPassword

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.