About. net code security

Source: Internet
Author: User
Everyone knows. net gets the IL intermediate code after compilation, but using ILDASM can easily decompile it into a text file, which is easy to understand, you can also use ILASM to re-compile it into an EXE file.
How to solve this problem is a concern of many. net fans.
There are different solutions for different occasions:
1. webservice or remote call
Place core code and data on your server
2. Jeffrey Richter said: if there is a very decisive Code, you can consider using Native Code DLL + Interop, if you think Native Code is 100% secure.
3. Adding a signature to the program means adding your digital certificate to the Assembly. In this way, when the. Net application is loaded, its security system will check the signature. This signature ensures that your code is not modified. If the changed code is not executed
It ensures that "this program must have been developed by a certain company and has not been tampered with", but it cannot be ensured that the program is secure. Whether you accept the program depends on your trust in the company.
You cannot implement the security you need. You can copy it.
4. Use a obfuscator to convert the original code into a pile of long characters without any meaning, which is hard to understand.
Like java, a string of ooo0o0o00o0o, ^ _ ^
5. You can add an encryption method yourself.
This has not been tried

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.