SitePoint Sponsor

User Tag List

Results 1 to 7 of 7
  1. #1
    SitePoint Member
    Join Date
    Nov 2005
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    PHP code protection

    Hello

    I need to protect/encode my PHP code since another web designer is taking over a site I developed.

    What solution do you recommend ?
    Ioncube ?
    PHPshield ?
    other ?

    Thanks

    Loic

  2. #2
    SitePoint Wizard cmuench's Avatar
    Join Date
    Jul 2005
    Location
    At my computer
    Posts
    2,251
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Pls next time just do a simple search. THis has been asked a million times in the forum
    http://www.sitepoint.com/forums/sear...archid=2886127

  3. #3
    SitePoint Member
    Join Date
    Nov 2005
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks for your help

  4. #4
    Programming Team silver trophybronze trophy
    Mittineague's Avatar
    Join Date
    Jul 2005
    Location
    West Springfield, Massachusetts
    Posts
    17,044
    Mentioned
    187 Post(s)
    Tagged
    2 Thread(s)

    code encryption

    Hi loicTas, welcome to the forums,
    I don't know what's best as I "give away" some of my best work in the spirit of open-source, but as cmuench mentioned, there are lots of threads dealing with this.

  5. #5
    SitePoint Member
    Join Date
    Nov 2005
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I've ended up using SourceCop http://www.sourcecop.com/

    It's not bytecode encryption but it does a reasonable job at making files unreadable. And it's easy to use. Encrypt, upload and that's it.

    I tried PHPShield (more secure and just a bit more expensive at $79) but I had to tweak quite a few things on my website to make it work and I couldn't be bothered looking into it (spending the time anyway).

    Cheers

    Loic

  6. #6
    SitePoint Evangelist catweasel's Avatar
    Join Date
    Apr 2007
    Location
    Goldfields, VIC, Australia
    Posts
    518
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by loicTas View Post
    Hello

    I need to protect/encode my PHP code since another web designer is taking over a site I developed.

    What solution do you recommend ?
    Ioncube ?
    PHPshield ?
    other ?

    Thanks

    Loic
    Another developer is taking over the site so you're going to encrypt all the code? What if there's a bug in it that needs fixing? or the site owner wants the new guy to add on more functionality? Rather than trying to find ways of encrypting it you should be making sure it's all documented well enough so the new guy can easily understand it.

  7. #7
    . shoooo... silver trophy logic_earth's Avatar
    Join Date
    Oct 2005
    Location
    CA
    Posts
    9,013
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    LMAO took me 3 seconds to retrieve the source code encrypted by SourceCop and i only needed to change one line.

    PHP Code:
    require_once(findsysfolder(__FILE__) . '/911006.php');

    $REXISTHECAT4FBI 'FE50E574D754E76AC679F242F450F768FB5DCB77F34DE341 660C280D176E374DE7FB3B090A782B6B68DBC97BEAD93B681C452F25BE26';

    g0666f0acdeed38d4cd9084ade1739498(f0666f0acdeed38d4cd9084ade1739498(__FILE__)); 
    To
    PHP Code:
    require_once(findsysfolder(__FILE__) . '/911006.php');

    $REXISTHECAT4FBI 'FE50E574D754E76AC679F242F450F768FB5DCB77F34DE341 660C280D176E374DE7FB3B090A782B6B68DBC97BEAD93B681C452F25BE26';

    print 
    f0666f0acdeed38d4cd9084ade1739498(__FILE__); 
    Correction there is a second line at the bottom in a eval. If you change that to print along with the top line source code
    Heh actually remove print from the first line its not needed but the one in the eval does need it.


    Seriously I would like to point out how dumb this is to encrypt your source code just because you are afraid some one is going to steal it. And it really gives no real protection just makes that person more wanting to get inside. Just like the programs that "encrypt HTML" now those are really a joke but anyways they do more damage then good and its best just to stay away from them.
    Logic without the fatal effects.
    All code snippets are licensed under WTFPL.



Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •