Thread: how to hide my C Code ?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Nov 2011
    Posts
    11

    how to hide my C Code ?

    Dear experts ..

    Since 2 years, I've seen C code that has been shattered and strange symbols have appeared .. when I asked why, I was told that this is a method to make your code (unreadable) for others if I want to hide my code from others ..

    I don't remember what is this called so that I can search for it .. can any body help ..?

  2. #2
    [](){}(); manasij7479's Avatar
    Join Date
    Feb 2011
    Location
    *nullptr
    Posts
    2,657
    >shattered and strange symbols
    Unless you can provide an example...I think you're talking about encryption.

  3. #3
    Registered User
    Join Date
    Sep 2008
    Posts
    200
    It's called code obfuscation.

  4. #4
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by JohnGraham View Post
    It's called code obfuscation.
    Keep in mind that while hiding it from others... you are also hiding it from *yourself*.

    Come back to that code in 5 years and try to follow it... You'll be as in the dark as everyone else.

    IOW... just don't do it.

    If you don't want others to see your source code, distribute pre-compiled libraries and header files.

  5. #5
    Registered User mdj441's Avatar
    Join Date
    Aug 2011
    Location
    NYS, USA
    Posts
    18
    If you do mean obfuscation, it's terrible security. If your code is meant to be secret, you're better off not giving it out at all.

    But it can be fun to do anyway. I've made things like this and this just to see how far I could break the rules of readability (and C in general) and still have a "working" result.

    If you search online, you'll also find that there are tools that can obfuscate your code for you.

  6. #6
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,666
    For example ---> Google
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  7. #7
    Registered User
    Join Date
    Nov 2011
    Posts
    32
    Quote Originally Posted by afesheir View Post
    Dear experts ..

    Since 2 years, I've seen C code that has been shattered and strange symbols have appeared .. when I asked why, I was told that this is a method to make your code (unreadable) for others if I want to hide my code from others ..

    I don't remember what is this called so that I can search for it .. can any body help ..?
    Create an object code. :P

  8. #8
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    I came here to see macros, trigraphs and a link to the IOCCC. I'm leaving completely disappointed in you all.


    Quzah.
    Hope is the first step on the road to disappointment.

  9. #9
    Registered User mdj441's Avatar
    Join Date
    Aug 2011
    Location
    NYS, USA
    Posts
    18
    Quote Originally Posted by quzah View Post
    I came here to see macros, trigraphs and a link to the IOCCC. I'm leaving completely disappointed in you all.


    Quzah.
    Quote Originally Posted by IOCCC
    The 20th IOCCC Competition
    Woah. I never thought... wow. Awesome news.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. hide C code from "strings"
    By atreyu in forum C Programming
    Replies: 4
    Last Post: 10-20-2009, 09:32 AM
  2. hide console
    By sniper22 in forum C++ Programming
    Replies: 4
    Last Post: 03-13-2006, 11:30 AM
  3. Console hide
    By geek@02 in forum Windows Programming
    Replies: 1
    Last Post: 06-17-2004, 04:45 AM
  4. Can I hide time?
    By afreedboy in forum Windows Programming
    Replies: 3
    Last Post: 01-19-2004, 10:57 AM
  5. How to hide password
    By Unregistered in forum Windows Programming
    Replies: 7
    Last Post: 02-02-2002, 05:28 PM