|
Here's a question - would storing the 2nd salt in separate database (with a different user and password from the user data database) from the user data, and just joining the two in a select statement add yet another level of security here?
That way, even if somehow a "bad man" got access to the user data database, he'd still have to figure out a way to get access to a SECOND database to get the 2nd salt needed to crack the hash? (Crack and hash? Holy crap ... hope the DEA isn't reading this stuff! :P )
Of course, then the question becomes what kind of a hit on the server does it become, and how does it scale?
I think what probably needs to be weighed isn't just how secure it CAN be, but how secure does it NEED to be. If your DB holds confidential/personal/credit card data ... NEED is pretty darn high. If it holds your shopping list for next payday, the world won't end if someone gets in and screws with it.
|