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. The Lounge
  3. Code obfuscurator

Code obfuscurator

Scheduled Pinned Locked Moved The Lounge
8 Posts 6 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.
  • C Offline
    C Offline
    Christian Skovdal Andersen
    wrote on last edited by
    #1

    Does anybody know of a good C++ code-obfuscurator? You know a tool that will read a source file, and write a new one, stripping comments, changing variable names etc. Christian Skovdal Andersen "I have a plan so cunning you could put a tail on it and call it a weasel." -Edmund, Blackadder III

    M R N A 4 Replies Last reply
    0
    • C Christian Skovdal Andersen

      Does anybody know of a good C++ code-obfuscurator? You know a tool that will read a source file, and write a new one, stripping comments, changing variable names etc. Christian Skovdal Andersen "I have a plan so cunning you could put a tail on it and call it a weasel." -Edmund, Blackadder III

      M Offline
      M Offline
      Michael P Butler
      wrote on last edited by
      #2

      Yeah, the guy who writes some of the platform sdk samples :-) Michael :-)

      C 1 Reply Last reply
      0
      • M Michael P Butler

        Yeah, the guy who writes some of the platform sdk samples :-) Michael :-)

        C Offline
        C Offline
        Christian Skovdal Andersen
        wrote on last edited by
        #3

        LOL! Right on! Christian Skovdal Andersen "I have a plan so cunning you could put a tail on it and call it a weasel." -Edmund, Blackadder III

        1 Reply Last reply
        0
        • C Christian Skovdal Andersen

          Does anybody know of a good C++ code-obfuscurator? You know a tool that will read a source file, and write a new one, stripping comments, changing variable names etc. Christian Skovdal Andersen "I have a plan so cunning you could put a tail on it and call it a weasel." -Edmund, Blackadder III

          R Offline
          R Offline
          realJSOP
          wrote on last edited by
          #4

          Writing a code obfuscator might be fun. All variables and function names turned into 1-3 letter names. Then, you go through looking for common code sequences and turn them into macros. Then, the code won't expand in the debugger (VC6 and earlier). :) "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001

          C 1 Reply Last reply
          0
          • R realJSOP

            Writing a code obfuscator might be fun. All variables and function names turned into 1-3 letter names. Then, you go through looking for common code sequences and turn them into macros. Then, the code won't expand in the debugger (VC6 and earlier). :) "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001

            C Offline
            C Offline
            Christian Skovdal Andersen
            wrote on last edited by
            #5

            If it would make variable names by mixing lowercase L's and uppercase I's, it would be kinda cool too. And everything should of course be typedefined: typedef (*(unsigned int*)) LPFARPROCDEREFERENCESUNSIGNEDLONGINTPTR; instead of just UINT. Christian Skovdal Andersen "I have a plan so cunning you could put a tail on it and call it a weasel." -Edmund, Blackadder III

            1 Reply Last reply
            0
            • C Christian Skovdal Andersen

              Does anybody know of a good C++ code-obfuscurator? You know a tool that will read a source file, and write a new one, stripping comments, changing variable names etc. Christian Skovdal Andersen "I have a plan so cunning you could put a tail on it and call it a weasel." -Edmund, Blackadder III

              N Offline
              N Offline
              Navin
              wrote on last edited by
              #6

              You could also look into porting your code to the FORTRAN language, then an obfuscator would be unnecessary... :-D The early bird may get the worm, but the second mouse gets the cheese.

              A 1 Reply Last reply
              0
              • N Navin

                You could also look into porting your code to the FORTRAN language, then an obfuscator would be unnecessary... :-D The early bird may get the worm, but the second mouse gets the cheese.

                A Offline
                A Offline
                Alvaro Mendez
                wrote on last edited by
                #7

                :-D Actually from what little I remember of FORTRAN 77, the code actually reads a lot like BASIC. It was difficult to obfuscate it due to its silly column positioning rules. Also, you couldn't write stuff like this: if (SomeFunction() .eq. 1) then You first had to assign SomeFunction to a variable, which had to be defined at the top of the method -- all very annoying. Regards, Alvaro

                1 Reply Last reply
                0
                • C Christian Skovdal Andersen

                  Does anybody know of a good C++ code-obfuscurator? You know a tool that will read a source file, and write a new one, stripping comments, changing variable names etc. Christian Skovdal Andersen "I have a plan so cunning you could put a tail on it and call it a weasel." -Edmund, Blackadder III

                  A Offline
                  A Offline
                  Anders Molin
                  wrote on last edited by
                  #8

                  Hmmm, the C preprocessor removes all comments and "expand" all the macros... I *think* I saw something on MSDN about getting the preprosessor to save the files to disk... It's not exactly a Code obfuscurator, but it's gonna make it pretty hard to maintain the code. ;) Maybe that's what all Open Source programmers are doing, all the Open Source code I have seen is impossible to read... - Anders Money talks, but all mine ever says is "Goodbye!"

                  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