News for hackers. Stuff that matters.
Re:Everything you ever wanted to know about building a secur... by amingilani on Thursday January 31, 2019 @09:09PM (#19051006)
> the password is hopefully accompanied by a salt, each of which sit in their own columns

Question: there's no real reason for the hash to be in a separate column, correct? Just that it's different per record?

Re:Everything you ever wanted to know about building a secur... by chias on Thursday January 31, 2019 @09:18PM (#19051040)
Correct. Many hashing functions designed for password hashing build the salt directly into the output string, in order to make it difficult to accidentally hash passwords without using a salt. On the other hand, if you're just using a bare hash function, you may find it convenient to store the salt in a separate column, if only to save yourself having to split on a separator character / character length in your application logic.
Re:Everything you ever wanted to know about building a secur... by amingilani on Thursday January 31, 2019 @10:10PM (#19051263)
Yeah, that's what I was I thinking. Bcrypt does that, or at least the implementation I'm familiar with seeing in Rails. The sentence threw me off there for a second. Thanks for the clarification.