简体   繁体   中英

How i can secure c# program

2 months before i started learning c# programming.

When I started I knew program can be decompiled, that is only problem about me and c#. I have question, how i can secure my code, I know i can obfuscate code with other programs. But i don't like to do that, because i knew there is program that can deobfuscate obfuscated program.

1. When I write line like connectionString = "... password: mypassword id: myid" how I can secure that line, I want no one to have access to that line when someone decompile my program.

2. same like 1. one. How I can secure program, a program that needs a password to enter the main part, someone can just decompile program and remove the password and open main part directly.

Sorry if question is stupid, please don't dislike, I am new, I didn't found question like this.

The real approach is using Server .

Client application represents the client itself. All the app knows, client knows. Then the server may be a bridge between the database and client and give the client only required permissions to access the data.

You may introduce some API server into your architecture. That's the easiest approach: only server will know the password.

The most popular way of implementation is REST API with JSON as data format.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM