1

I've SQL login username and password. i will use in connection string in c# program to retrieve data from the database but I don't want to show password. Is there any way i can encrypt it so that no one can see password and also not easy to decrypt it.

devduder
  • 394
  • 1
  • 10
user2841795
  • 375
  • 3
  • 10
  • 25

1 Answers1

2

This article (http://msdn.microsoft.com/en-us/library/dx0f3cf2(v=vs.85).aspx) exmplains how to encrypt your connection strings in the Web.config.

This answer about app.config encryption (Encrypting connectionStrings section - utility for app.config)

Community
  • 1
  • 1
Roman Mik
  • 3,179
  • 3
  • 27
  • 49