Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

7
  • 1
    I would argue that if adding a pepper means append the pepper directly to the password and then hash it. It's useless and Dave's bad algo wins under this situation. Commented Jul 1, 2019 at 11:41
  • 1
    @Rick Why would it be useless? Commented Jul 1, 2019 at 11:44
  • 8
    @Rick Yes, a pepper should be secret, and not stored in the database. So it is protecting against exactly the situation you describe - database leaked, code not leaked. That is what a pepper is for, so you can't compare it to increasing the length of the salt. Commented Jul 1, 2019 at 11:51
  • 1
    @Rick I'm not taking any position on how to mix in the pepper - that is outside the scope of this quesiton. Commented Jul 1, 2019 at 11:53
  • 1
    @Rick Question remains: Why would a pepper be useless? Commented Jul 1, 2019 at 11:53