I am working on Drupal 8 site where the client has asked us to use their own custom salt when storing the user password in the database.

Is it possible to set a custom salt for a Drupal site?

The client is thinking of the feature from a security perspective. What can be done?

  • 1
    You can set the hash salt in settings.php – Jaypan Feb 15 at 22:00

In site/default/settings.php there is a config for salt

$settings['hash_salt'], passwords are hashed with this salt. you can change it to whatever the client has asked you.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.