I have to salt and hash some passwords to ensure that I'm able to store them securely inside a database. Have you got any advice or ideas regarding just how to get this done using Linq To SQL?

LINQ to SQL does not cash relevance within this situation. You could utilize any mechanism you need to, since you will not do hashing and salting in SQL.

The steps in order to save your password would complement wrinkles:

  1. Get the password as cleartext, together with anyone's ID.
  2. Generate (and don't forget) the salt.
  3. Mix the salt using the password text, e.g. prepend it or append it.
  4. Hash the resulting text together with your hash function
  5. Keep user ID, the hash and also the salt inside your DB.

The steps to ensure your password would complement wrinkles:

  1. Get the password as cleartext, together with anyone's ID.
  2. Retrieve the hashed and also the salt in the DB for that provided user ID.
  3. Mix the salt using the provided password text.
  4. Hash the resulting text together with your hash function.
  5. Compare the hash in the function using the hash retrieved in the DB.
  6. If they're equal, the provided password was correct.

As you are while using .Internet and C#, use may use the System.Security.Cryptography.SHA512Managed namespace for producing the salt value and password hash

Essentially as @Vojislav states.

You might like to take a look at bcrypt for that hashing - it's reputed to be really good.