Obfuscation

Discussion in 'ASP.NET / ASP.NET Core' started by uniquesjc, Apr 25, 2006.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. Hi

    Can anyone point me to an example of how to encrypt the web.config connection string using Dotfuscator? I'm using Dotfuscator Professional Edition 3.0 Evaluation with Visual Studio Professional 2005, and have added a Dotfuscator project to my ASP.Net project, but can't work out how to add an input assembly.

    Thanks
    SteveC
     
  2. Doesn't anybody have an answer to this? What about you DASPs? Why is it that whenever I raise the issue of obfuscation I get zero responses? Are people afraid of giving up "reverse-engineering" secrets? Send me a private message if you wish.

    SteveC
     
  3. Bruce

    Bruce DiscountASP.NET Staff

    I have not tried using obfuscation and can't offer much help.

    As far as I know, Obfuscation make the CLI code unreadable. It has nothing to do with encrypting web.config. Of course, this is based off my limited knowledge.

    Bruce

    DiscountASP.NET
    www.DiscountASP.NET
     
  4. obfuscation is for compiled binaries. if you want to protect the web.config, you'll have to research encrypting the web.config settings.



    Joel Thoms
    DiscountASP.NET
    http://www.DiscountASP.NET
     
  5. Thanks for your replies


    I was under the impression that Dotfuscator from PreEmptive Solutions can be used to protect ASP.Net projects.


    As far as encryption goes, I hit a wall in trying to make the .Net login control recognise an encrypted connection string; seems that it requires a valid, unencrypted string before you can change it.
    Any ideas?

    SteveC
     
  6.  
  7. I dont have any experience with encrypting the web.config. you might want to scour these forums and asp.net's to see if you can find anything useful.



    Joel Thoms
    DiscountASP.NET
    http://www.DiscountASP.NET
     
  8. Bruce

    Bruce DiscountASP.NET Staff

    due to some technical reason, you do not support encrypting the web.config file using ASP.NET's aspnet_regiis tool.

    Bruce

    DiscountASP.NET
    www.DiscountASP.NET
     
  9. Steve,</o:p>
    As you have figured out dotfuscator is for mangling the IL code and not the web config. I think that you want to do something along the lines of encrypting using the Windows Data Protection API. I haven't done anything in ASP.NET 2.0 but I played around with the DPAPI in 1.1. </o:p>
    Some hints on what you are trying to do can be found from the 4 guys from Rolla http://aspnet.4guysfromrolla.com/articles/021506-1.aspx. Which in turn will point you to http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnpag2/html/paght000005.asp.</o:p>
    Hope this helps.</o:p>
    Michael</o:p>
    </o:p>
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page