Can you hide or Encrypt the Source Code?

Discussion in 'Programming' started by chewie49, Oct 26, 2007.

  1. #1
    Hello!

    I wonder if there is anyway to encrypt or hide the source code, when someone try to read it from their browser.

    Is that possible?

    Regards,

    Chewie.
     
    chewie49, Oct 26, 2007 IP
  2. Bernard

    Bernard Well-Known Member

    Messages:
    1,608
    Likes Received:
    107
    Best Answers:
    0
    Trophy Points:
    185
    #2
    If a browser can read/understand the code, a dedicated hacker can too.
     
    Bernard, Oct 26, 2007 IP
  3. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #3
    No there is not, end of discussion.

    Not trying to sound harsh, but trust me, there is no way. People always like to argue and come back with "I've seen this" and "how about this", etc...

    There is no way to hide it. Everything can be bypassed, the only thing you can do is make it harder, but not impossible.

    Simple reason why: The browser needs to read the code to parse and display it - If the browser can, then a normal person too.
     
    nico_swd, Oct 26, 2007 IP
  4. Barti1987

    Barti1987 Well-Known Member

    Messages:
    2,703
    Likes Received:
    115
    Best Answers:
    0
    Trophy Points:
    185
    #4
    Use flash with Java backend.

    Peace,
     
    Barti1987, Oct 26, 2007 IP
  5. TwistMyArm

    TwistMyArm Peon

    Messages:
    931
    Likes Received:
    44
    Best Answers:
    0
    Trophy Points:
    0
    #5
    So then all I would have to do is write my own Flash code to grab from the same Java backend (or even just use something like Ethereal and read it straight off the wire).

    If they want it badly enough, they'll get it. Hollywood seems to be in denial, too.

    Also, if you go to those extremes, the OP has to be aware that it will totally destroy any search engine friendliness that their site may have once had.
     
    TwistMyArm, Oct 26, 2007 IP
  6. Zanswer

    Zanswer Peon

    Messages:
    264
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Exactly, if you don't plan to rely on search engines to bring traffic I guess there are some ways to make it relatively hard to steal your code.
     
    Zanswer, Oct 29, 2007 IP