News for hackers. Stuff that matters.
Re:Ask HN: Take a Look At My Site - Studylance.com by slance on Saturday November 14, 2009 @12:20PM (#941858)
Thanks, will be sure to change that...
Re:Ask HN: Take a Look At My Site - Studylance.com by nollidge on Saturday November 14, 2009 @03:44PM (#942106)
I sure hope you aren't storing passwords in plaintext...
Re:Ask HN: Take a Look At My Site - Studylance.com by DrewHintz on Saturday November 14, 2009 @08:12PM (#942435)
Rather than storing the actual passwords in the database, you'll want to only store a digest of each password.

For example, storing a keyed HMAC using SHA-2 is great. An easy similar method is to store the SHA(password + some server secret value + user's email address) In this case the user's email address serves as the salt. The server secret value prevents a database-only compromise from leading to locally brute-forced passwords. When the user logs in, on the server, re-compute the digest and see if it matches the stored digest.

I didn't notice any HTTPS -- you might want to use it for queries involving the password and any financial transactions.