개정판 e1c892f7
- 효성 AutoStamping 서비스 추가
Change-Id: I5d001e75e3c0de5d2475641cf0f771ca541e6e40
FinalService/KCOM_FinalService/ConnectionStrEncrypt/Program.cs | ||
---|---|---|
11 | 11 |
{ |
12 | 12 |
static void Main(string[] args) |
13 | 13 |
{ |
14 |
///String originalText = "data source=cloud.devdoftech.co.kr,7777;database={0};user id=doftech;password=dof1073#"; |
|
14 |
if (args == null || args?.Count() == 0) |
|
15 |
{ |
|
16 |
args = new[] { "-en", "data source=10.11.252.2,9875;database={0};user id=ProjectPortalDBConn;password=ProjectPortalDBConn" }; |
|
17 |
} |
|
18 |
|
|
15 | 19 |
String key = "Doftech1073#"; |
16 | 20 |
|
17 | 21 |
if ((args.Length == 2) && (args[0] == "-en")) |
... | ... | |
28 | 32 |
{ |
29 | 33 |
Console.WriteLine("Usage : ConnectionStrEncrypt.exe -en|-de <input string>"); |
30 | 34 |
} |
35 |
|
|
36 |
Console.ReadLine(); |
|
31 | 37 |
} |
32 | 38 |
|
33 | 39 |
public static string Decrypt(string textToDecrypt, string key) |
내보내기 Unified diff