I am going to build a website and need to mange users entering the site.
I want to understand a bit about User Management.
Question 1
I need to hash my password, I was thinking about Sha256, but Sha512 is safer, do you think I should go for safer?
Question 2
When a user is registered to the system, I give him a UserId key in the sql, which is going in order, 1, 2, 3 and so on.
When logging into the system the user gets Session["Userid"] =
The number from sql. (Which can be 1, 2, 5555) and so on.
Is that a safe way to do that?
Question 3
If I want to do a new table of user details is that fine that when a user is registered and gets a Userid key I will just add another one to the User details table?