2
$\begingroup$

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?

$\endgroup$
  • 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 Aug 15 '15 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$ – Stephen Touset Aug 15 '15 at 4:12
  • $\begingroup$ @cpast Could you make that an answer? $\endgroup$ – Maarten Bodewes Aug 17 '15 at 15:22
2
$\begingroup$

Short answer: Yes, you're right.

| improve this answer | |
$\endgroup$

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.