I have a table TblUserLogin with columns LoginID int, Password varchar(50), LoginUserName varchar(150), Designation varchar(100).
My requirement is that whenever we are using select statement to this table we are able to see the password which is entered (which is sensitive information).
Is there any way so that we can encrypt the password column so that when ever we use select statement that information will be seen in an encrypted way and will not affect the code which is accessing the password column or inserting new password?
In simple words when “The password column shown as encrypted when it is accessed from Management Studio using select statement, but when accessed programatically it returns the actual non-encrypted password”.
Try this:
Use this sproc whenver you insert a new user into your user table.So this will encrypt the password and insert.