I'm creating an login system in php. I have a custom table for e-mail check, which gets the user register data, and then move it to the table user.
I would like to know if it's safe to create the random salt and store it with hashed password on temporary user table, or it's better to store only normal password them hash it and create salt after the user confirmation?
I was thinking that an user could some how make a mass "register" with various e-mail address (which can't be real validate) and slow down the server (because of the salt and hash create functions). By the way, creating the hash after leads to a non trigger (I'm using MySQL) situation, because some of the values must the added (created) manually.