How to Encypt Source Code on Your Website

Discussion in 'Security' started by jis2507, Jan 27, 2010.

  1. #1
    Hey,

    Does anybody know how to encrypt the PHP source code on a site?

    I have many passwords and files and things like that I don't want people to just be able to download. I'm not sure that a .htaccess file will do the job as that only stops people from visiting the directory...
    hmmm

    Any ideas?
     
    jis2507, Jan 27, 2010 IP
  2. Zizzi

    Zizzi Peon

    Messages:
    67
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Your source code isn't visible by the user. Only the data that is printed to the user. Unless you have some weird set of perms, etc.
     
    Zizzi, Jan 27, 2010 IP
  3. FavouritesBlog

    FavouritesBlog Peon

    Messages:
    846
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #3
    This doesn't really make sense, why keep your passwords and " files " in php source code?
     
    FavouritesBlog, Jan 28, 2010 IP
  4. jis2507

    jis2507 Greenhorn

    Messages:
    39
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    18
    #4
    I'm not putting passwords and files in PHP source code, however if people had access to the source code they could get into my mySQL databases (passwords), and find that passwords and URL's to some record files for my website.
     
    jis2507, Jan 28, 2010 IP
  5. Zizzi

    Zizzi Peon

    Messages:
    67
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    ok, as far as the record files go... set permissions so that some random person cannot read the file. Unless your script has severe errors, no one will ever be able to see the source code. PHP is executed server side and the result is sent to the user, not the source code.
     
    Zizzi, Jan 28, 2010 IP
  6. Rudolf Bodocsi

    Rudolf Bodocsi Peon

    Messages:
    69
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Hi,

    Go to this web site http://www.ioncube.com/. This company have PHP code encoder.

    But my opinion is like Zizzi. If you setup normally permissions and write good PHP script then you can access to user name and password. Big company's website's storing user name and password in plain php file.

    I'm not worry that much for security my site. You not running NASA mission web site. If you have good backup then any time you can restore your web site. And try to found out what is a problem. In real life doesn't exists hacker proof web site. Lot of people spending millions of dollars to improve they security system and after they hacked after half or one year period.

    Rudolf
     
    Rudolf Bodocsi, Jan 28, 2010 IP
  7. califmerchant

    califmerchant Active Member

    Messages:
    112
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    63
    #7
    as far as the outside user goes, they wont have access to your php code

    if you wanna distrubute php code, use zend
     
    califmerchant, Jan 30, 2010 IP
  8. FavouritesBlog

    FavouritesBlog Peon

    Messages:
    846
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Zend can be cracked
     
    FavouritesBlog, Jan 31, 2010 IP