Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to encrypt the password column

I have user table in SQL Server 2008 r2. Nothing there is encrypted yet but I would like to at the least encrypt the passwords until the app is ready that will handle this better. Can i do this and how? to manually make the passwords encrypted.

like image 617
Booksman Avatar asked Feb 20 '11 23:02

Booksman


1 Answers

You can encrypt columns using SQL Server, ( see: http://msdn.microsoft.com/en-us/library/ms179331.aspx for a walk-through).

You can also use a key given out from the server itself.

The risk of using this is if you had to do data recovery and move the DB to a different server it would be impossible to decrypt the column (reset passwords would be required).

like image 62
Russell Avatar answered Oct 28 '22 06:10

Russell