How do I avoid having the database password stored in plaintext in sourcecode?

前端 未结 6 1623
情书的邮戳
情书的邮戳 2021-01-01 12:17

In the web-application I\'m developing I currently use a naive solution when connecting to the database:

Connection c = DriverManager.getConnection(\"url\",          


        
6条回答
  •  再見小時候
    2021-01-01 12:27

    Assuming that you are using MS SQL, you can take advantage of windows authentication which requires no ussername/pass anywhere in source code. Otherwise I would have to agree with the other posters recommending app.config + encryption.

提交回复
热议问题