Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Obfuscator - Crytografy code

Obfuscator - Crytografy code

Scheduled Pinned Locked Moved C#
csharpquestion
10 Posts 8 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    horacyjr
    wrote on last edited by
    #1

    I work with c#.net and i need a obfuscator to Cryptography the code of the projects, for nobody can read the code using a reverse engineering. i would like to know which is the best obfuscator? Thanks Junior Lopes

    C N L 3 Replies Last reply
    0
    • H horacyjr

      I work with c#.net and i need a obfuscator to Cryptography the code of the projects, for nobody can read the code using a reverse engineering. i would like to know which is the best obfuscator? Thanks Junior Lopes

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      Not possible. There is no such thing as an obsfucator that stops people from reading your code - the .NET framework needs to be able to read it. Christian Graus - Microsoft MVP - C++

      H 1 Reply Last reply
      0
      • C Christian Graus

        Not possible. There is no such thing as an obsfucator that stops people from reading your code - the .NET framework needs to be able to read it. Christian Graus - Microsoft MVP - C++

        H Offline
        H Offline
        horacyjr
        wrote on last edited by
        #3

        so i can not protect my code, i mean if i do a small project and i want to sell this project, and then somebody can read my code? i can not hide or crytography ? how does the companies do ?

        C D M 3 Replies Last reply
        0
        • H horacyjr

          so i can not protect my code, i mean if i do a small project and i want to sell this project, and then somebody can read my code? i can not hide or crytography ? how does the companies do ?

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #4

          You can use C++, otherwise, you just have to hope for the best. Christian Graus - Microsoft MVP - C++

          1 Reply Last reply
          0
          • H horacyjr

            so i can not protect my code, i mean if i do a small project and i want to sell this project, and then somebody can read my code? i can not hide or crytography ? how does the companies do ?

            D Offline
            D Offline
            Daniel Grunwald
            wrote on last edited by
            #5

            You cannot prevent that your code is being read, but you can make the decompiled code harder to understand by using an obfuscator. Obfuscators rename all classes and methods, which makes guessing what the code does much harder. You can also use Salamander Protector to compile .NET assemblies to native code, but it's expensive...

            D H 2 Replies Last reply
            0
            • D Daniel Grunwald

              You cannot prevent that your code is being read, but you can make the decompiled code harder to understand by using an obfuscator. Obfuscators rename all classes and methods, which makes guessing what the code does much harder. You can also use Salamander Protector to compile .NET assemblies to native code, but it's expensive...

              D Offline
              D Offline
              Dan Neely
              wrote on last edited by
              #6

              Be aware that even compiling into native code won't stop a determined hacker from being able to bypass your regisitration routines. Ultimately whatever you do your code will be turned into x86 assembly, and it's execution can be monitored in a debugger. This is why even though game companies spend millions on copyprotection cracked versions are out within days.

              1 Reply Last reply
              0
              • H horacyjr

                so i can not protect my code, i mean if i do a small project and i want to sell this project, and then somebody can read my code? i can not hide or crytography ? how does the companies do ?

                M Offline
                M Offline
                mav northwind
                wrote on last edited by
                #7

                The way obfuscators work is to rename variables, class members and such to - for a human reader - meaningless names. So even if you decompile the code, your classes will have methods similar to this:

                void a(string a, int b)
                

                But that just makes it harder for a human reader to understand your code, not impossible to read. There are also cases where obfuscators can't hide everything because the program itself is relying on constant method names, for example when using reflection. Regards, mav

                1 Reply Last reply
                0
                • H horacyjr

                  I work with c#.net and i need a obfuscator to Cryptography the code of the projects, for nobody can read the code using a reverse engineering. i would like to know which is the best obfuscator? Thanks Junior Lopes

                  N Offline
                  N Offline
                  Niklas Ulvinge
                  wrote on last edited by
                  #8

                  Why do you want to do that? Does it matter if someone sees your code? If he isn't able to see the code he could simply look at the assembly (either the real or the MSIL) and that way figure out how it works. What's the purpose then? Niklas Ulvinge aka IDK

                  1 Reply Last reply
                  0
                  • D Daniel Grunwald

                    You cannot prevent that your code is being read, but you can make the decompiled code harder to understand by using an obfuscator. Obfuscators rename all classes and methods, which makes guessing what the code does much harder. You can also use Salamander Protector to compile .NET assemblies to native code, but it's expensive...

                    H Offline
                    H Offline
                    Heath Stewart
                    wrote on last edited by
                    #9

                    Obfuscators don't rename all classes and methods - only internals and privates. There could be an obfuscator that - given all assemblies for an application - obfuscates anything but then your assemblies would not be easily reusable, either. What would happen if third-party component developers obfuscated their public classes? It would be difficult to use them and in some cases impossible, since IL allows for characters for methods, properties, etc., that are not allowed in source languages like C# and VB.NET. This posting is provided "AS IS" with no warranties, and confers no rights. Software Design Engineer Developer Division Customer Product-lifecycle Experience Microsoft [My Articles] [My Blog]

                    1 Reply Last reply
                    0
                    • H horacyjr

                      I work with c#.net and i need a obfuscator to Cryptography the code of the projects, for nobody can read the code using a reverse engineering. i would like to know which is the best obfuscator? Thanks Junior Lopes

                      L Offline
                      L Offline
                      Lost User
                      wrote on last edited by
                      #10

                      Stop looking for the best, no protection scheme is 100% secure. instead look for a obfuscation which offers good enough protection, and which is easy to use and reasonably priced and that you get prompt tech support. Have a look at Crypto Obfuscator

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups