People say "hash and salt", but aren't you supposed to salt password the first, and then hash it?

So that means its called "salt and hash" right?

  • 5
    $\begingroup$ Actually, with the big three proper password hashes the salt is just another input into the algorithm, rather than "salting the password" being an operation in its own right (the operations are "generate salt" and "compute hash with these parameters, this password, and this salt"). $\endgroup$
    – cpast
    Commented Aug 15, 2015 at 1:20
  • 2
    $\begingroup$ You should not be writing code to hash passwords yourself. Use bcrypt or scrypt and you won't have to care about details like these. Bindings are available for virtually any language you wish. $\endgroup$ Commented Aug 15, 2015 at 4:12
  • $\begingroup$ @cpast Could you make that an answer? $\endgroup$
    – Maarten Bodewes
    Commented Aug 17, 2015 at 15:22

1 Answer 1


Short answer: Yes, you're right.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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