Another n00b question but when inserting data into a database using SHA1 do you need to do this:
INSERT INTO $table (`password`)
VALUES([B]'sha1($_POST['password'])'[/B]);
or something like that, and when retrieving from it:
SELECT * FROM $table WHERE sha1($_POST['password']);
Or can you just got $_POST['password']
Sorry I dont know how this works. Also what is a snippet for salting a sha1 command. Thanks you guys(or girls).