What is the best way to save username and password for windows service?

What is the best way to save username and password for windows service?

The service must have access to the MS SQL Server database on the remote computer. We must support MS SQL Server authentication (mixed mode) instead of NT Authentication.

+3
source share
7 answers

The DP API is the standard way to store sensitive data locally on Windows. You did not specify the programming language that you are using, but in .NET it is shown in the System.Security.ProtectedData class .

+2
source

Assuming .Net, you can encrypt your configuration file. See this .

+5
source
0

Windows, , , SQL Server, , ..

: , - , .

0

.

?

, , .

, , , NT Authentication . , , , , .

0

- . - , . , .

, - (wikipedia for rainbow table). , , . - , .

, :

  • , .
  • .
  • .
  • Compare the calculated hash with the database. If they match, give access!
-2
source

Source: https://habr.com/ru/post/1699141/


All Articles