A
A
Andrey Plax2014-12-16 12:05:57
SQL
Andrey Plax, 2014-12-16 12:05:57

It is not recommended to store passwords in the connection string. And where?

When developing software that connects to the database, storing passwords in the Connection String is not recommended for security reasons. I often read about this. And here is where to read about where, after all, or how, it is recommended to store passwords in a program that periodically connects to the database.
Thanks for the constructive responses.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
B
brutal_lobster, 2014-12-16
@brutal_lobster

Rather, not for security reasons - but for reasons of ease of management :)
Store in the configuration file.
And if a service that connects to the database is compromised, hiding access details will not save you.

P
plasticmirror, 2014-12-16
@plasticmirror

well, for mssql in production, you can use authorization by AD user, and not by sql-login / pass.

B
Berckyt, 2014-12-22
@Berckyt

Alternatively, environment variables

A
Andrey Plax, 2014-12-16
@Hereigo

Thanks brutal_lobster Do
you have any other tips or recommendations?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question