none
.NET FRAMEWORK BASICS RRS feed

  • Question

  • Hi Chen,
    I guess I already introduced myself to you (fresh into the world of .Net and programming. My previous question was regarding the difference between .Net Framework and .net framework SDK). I have another question for you . ..

    Lets consider a scenario where I have developed an application to be ditributed in the market.
    My question is how can I keep my code  safe, because using the ILDASM tool one could easily peek into the assembly and get a gist of the types or also interpret the IL code. Is this not a violation of IPR?

    Friday, February 5, 2010 6:55 AM

Answers

  • Hi Ananth,

    Sorry for delay. And thank you for your post.

    For your concern on security of source code, one good way is encryption. It is the process of transforming information (referred to as plaintext) using an algorithm (called cipher) to make it unreadable to anyone except those possessing special knowledge.
    For more information on encryption, please check: http://en.wikipedia.org/wiki/Encryption
    Here is one sample code about .NET Encryption, please check: http://www.codeproject.com/KB/security/SimpleEncryption.aspx.

    You also can refer to the discussion in the following similar issue:
    http://www.dotnetmonster.com/Uwe/Forum.aspx/dotnet-distributed-apps/783/How-to-restrict-the-user-not-to-use-ildasm-tool.

    If you're developing web application, I think that this article might shed some light:
    http://msdn.microsoft.com/en-us/library/ms994921.aspx.

    Hope this helps! If you have any concern, please feel free to let me know.

    Best regards,
    Yichun Chen

    (This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites; therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.)
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
    • Marked as answer by YiChun Chen Friday, February 12, 2010 2:47 AM
    Monday, February 8, 2010 9:12 AM

All replies

  • Come on guys I don't think this is tough. Anybody out there who can clear my doubt?
    Sunday, February 7, 2010 4:05 PM
  • Hi Ananth,

    Sorry for delay. And thank you for your post.

    For your concern on security of source code, one good way is encryption. It is the process of transforming information (referred to as plaintext) using an algorithm (called cipher) to make it unreadable to anyone except those possessing special knowledge.
    For more information on encryption, please check: http://en.wikipedia.org/wiki/Encryption
    Here is one sample code about .NET Encryption, please check: http://www.codeproject.com/KB/security/SimpleEncryption.aspx.

    You also can refer to the discussion in the following similar issue:
    http://www.dotnetmonster.com/Uwe/Forum.aspx/dotnet-distributed-apps/783/How-to-restrict-the-user-not-to-use-ildasm-tool.

    If you're developing web application, I think that this article might shed some light:
    http://msdn.microsoft.com/en-us/library/ms994921.aspx.

    Hope this helps! If you have any concern, please feel free to let me know.

    Best regards,
    Yichun Chen

    (This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites; therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.)
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
    • Marked as answer by YiChun Chen Friday, February 12, 2010 2:47 AM
    Monday, February 8, 2010 9:12 AM