|
|
|
SSC Journeyman
      
Group: General Forum Members
Last Login: Wednesday, May 05, 2010 10:47 PM
Points: 93,
Visits: 98
|
|
I have passed the encrypted password in the connection string from my VB or VB.Net code.How to tackle this is SQL Server.I mean,how I define the decryption logic in SQL Server 2005?What should be the password of the login I passed in connection string (I hope it should be decrypted one only!!!). In short I want all the ways of implementing encryption-decryption in SQL Server 2005 interacting with VB6 or dotnet. Thanks i advance for your help!!!!
|
|
|
|
|
SSC-Dedicated
           
Group: Administrators
Last Login: Today @ 11:20 AM
Points: 31,437,
Visits: 13,752
|
|
|
|
|
|
Old Hand
      
Group: General Forum Members
Last Login: Friday, October 15, 2010 8:23 AM
Points: 371,
Visits: 437
|
|
You need to be a bit more clear on this..
Encrypted string in an application and building a connection string? - decrypt password, build unencrypted connection string use that to connect.
Connection string is encrypted in config file and you need to use it? - read encrypted data, unencrypt and use it.
Either way, you need to build a class to handle your encryption requests, and your connection string you use needs to be clear text. Ado and OLE drivers cannot handle encrypted strings. There are new methods in .net2 to keep your connection string encrypted in your config file.
|
|
|
|
|
SSC Journeyman
      
Group: General Forum Members
Last Login: Wednesday, May 05, 2010 10:47 PM
Points: 93,
Visits: 98
|
|
Hi Jamie,
I will tell u the exact scenario.... suppose the password of SQL Server Login is sqltest.I encrypted the password (to suppose "#[)^%#" based on my own logic) and made the conn string in VB6......... Now sql server login has password sqltest.Where will I define this encryption logic in SQL so that it can decrypt "#[)^%#" to sqltest for login success.
|
|
|
|
|
Old Hand
      
Group: General Forum Members
Last Login: Friday, October 15, 2010 8:23 AM
Points: 371,
Visits: 437
|
|
from what i understand, what you are trying to do isnt supported by any OLE/ODBC provider I know of. Usually you encrypt a password when saved in a file (like web.config or whatever), read it in your application, decrypt it, build connection string, connect to server.
If you are concerned about plain text, etc, you need to encrypt your connection, or use integrated authentication instead (as integrated stores no password, its windows auth)
secure connection: http://technet.microsoft.com/en-us/library/ms189067.aspx
|
|
|
|
|
SSC Journeyman
      
Group: General Forum Members
Last Login: Wednesday, May 05, 2010 10:47 PM
Points: 93,
Visits: 98
|
|
|
|
|