code security for. Net

Source: Internet
Author: User
Safety | Security everyone knows. NET is compiled to get IL Intermediate code, but using ILDASM can easily be disassembled into a text file, this text file is easier to read, and can be modified to use ILASM to recompile to EXE file.
How to solve this problem, I think the vast number of. NET enthusiasts care about things

There are different solutions for different situations:

1.webservice or remote mode call
Put the core code and data on your server
2.Jeffrey Richter said: If you have a very decisive code, you can consider using the dll+interop of native code, if you think native code is 100% safe.
3. The signature in the program is added to your digital certificate in the assembly. So when. NET application is loaded, its security system checks for this signature, which guarantees that your code will not be altered if the changed code is not executed.
It guarantees that "this program must have been developed by a certain company and has not been tampered with," but there is no guarantee that the program is safe, and whether you accept the program depends on your trust in the company.

Unable to achieve the security you need, can copy go again

4. Use the obfuscation to change the original code into a heap of long characters without any meaning, it is difficult to understand
Like Java, a string of ooo0o0o00o0o, ^_^
5. You can consider adding an encryption method yourself
This hasn't been tried yet.



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.