0

IF I write code below in my program

Dim conn As New SqlConnection With {.ConnectionString = "Server= serverIP ; Database=datafile ;User= username ;Pwd= password ;"}

If I use debug or other file viewer, is not easy to find security data like password ?

How to avoid security data lose?

Machavity
  • 30,841
  • 27
  • 92
  • 100
jjctw1969
  • 57
  • 7
  • Yes it is easy. That's what Windows Authentication is for, it doesn't use passwords – Charlieface Feb 17 '21 at 09:23
  • Take a read of this question: [Encrypt connection string in app.config](https://stackoverflow.com/questions/11637348/encrypt-connection-string-in-app-config) – JayV Feb 17 '21 at 10:15
  • similar in Android APP code below Class.forName("net.sourceforge.jtds.jdbc.Driver"); ConnectionURL = "jdbc:jtds:sqlserver://" + server + ";" + "databaseName=" + database + ";user=" + user + ";password=" + password + ";"; connection = DriverManager.getConnection(ConnectionURL); is easy to find password too. How can I do ? – jjctw1969 Feb 17 '21 at 16:38

1 Answers1

0

Finally I use "File Viewer Plus 3" to view .exe file inspect then search. cannot find security data like server IP, user, password. I feel VB.net has hide it.

jjctw1969
  • 57
  • 7