+ Post New Thread
Results 1 to 9 of 9
Coding Thread, Encrypting PHP files in Coding and Web Development; I'm looking for a reliable (and free of charge) way of encrypting PHP files so I can distribute them without ...
  1. #1

    Join Date
    Oct 2013
    Posts
    28
    Thank Post
    1
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Encrypting PHP files

    I'm looking for a reliable (and free of charge) way of encrypting PHP files so I can distribute them without revealing my source code?

  2. #2
    ass17's Avatar
    Join Date
    Feb 2013
    Posts
    354
    Thank Post
    5
    Thanked 39 Times in 36 Posts
    Rep Power
    27
    Problem you have if you encrypt a file , for a server to decrypt and process it, it will need the key you encrypted it with. So people can easy write out your decrypted file to a text file.

    Give PHP BLENC a try.

  3. #3
    MordyT's Avatar
    Join Date
    Sep 2012
    Location
    In a computer
    Posts
    504
    Thank Post
    44
    Thanked 74 Times in 69 Posts
    Rep Power
    22
    Investigate ioncube. Does exactly what you want.

  4. #4
    dwhyte85's Avatar
    Join Date
    Mar 2009
    Location
    Berkshire
    Posts
    1,226
    Thank Post
    161
    Thanked 150 Times in 135 Posts
    Rep Power
    104
    You could obfuscate - if you google "obfuscate php" you will probably find a few online tools that can do it for free.

  5. #5

    localzuk's Avatar
    Join Date
    Dec 2006
    Location
    Minehead
    Posts
    18,156
    Thank Post
    522
    Thanked 2,551 Times in 1,980 Posts
    Blog Entries
    24
    Rep Power
    877
    Whilst there are systems available which can encrypt PHP, such as IonCube, they are not 100% secure. There are still ways to decrypt the files.

    The question you should ask is - does the code actually need to be closed source? Could you sell it with a license that prohibits code usage outside of the system, and disallowing reuse? What is the likelihood that someone will steal the code?

  6. #6
    Arreks's Avatar
    Join Date
    Jul 2014
    Location
    London, UK
    Posts
    104
    Thank Post
    46
    Thanked 17 Times in 13 Posts
    Rep Power
    5
    I don't think encryption would be the path you want to go down, the problem with encryption is that it's ruled by algorithms. If you know the algorithm, you can get the original code. Obfuscation would be more apt judging by your requirement; it will completely mess around with your code, renaming and generally throwing around everything so that it's completely unreadable (and unreversable to a certain extent) - the code will still work if they took it, but they'd have no idea how to use it or how to change it.

    That being said, no amount of obfuscation or encryption can stop a keen cracker. If you JUST want to prevent skiddies taking your code, then use any obfuscation software (i'd recommend PHP Protect). If you're storing sensitive information or passwords, then obfuscation will only make it a bit harder for them to find them.

  7. #7

    plexer's Avatar
    Join Date
    Dec 2005
    Location
    Norfolk
    Posts
    13,603
    Thank Post
    725
    Thanked 1,685 Times in 1,500 Posts
    Rep Power
    432
    Quote Originally Posted by Arreks View Post
    I don't think encryption would be the path you want to go down, the problem with encryption is that it's ruled by algorithms. If you know the algorithm, you can get the original code.
    Sorry but that's not how encryption works at all.

    Ben

  8. #8

    localzuk's Avatar
    Join Date
    Dec 2006
    Location
    Minehead
    Posts
    18,156
    Thank Post
    522
    Thanked 2,551 Times in 1,980 Posts
    Blog Entries
    24
    Rep Power
    877
    Quote Originally Posted by plexer View Post
    Sorry but that's not how encryption works at all.

    Ben
    Ironically, it is how obfuscation works.

  9. Thanks to localzuk from:

    plexer (12th August 2014)

  10. #9
    Arreks's Avatar
    Join Date
    Jul 2014
    Location
    London, UK
    Posts
    104
    Thank Post
    46
    Thanked 17 Times in 13 Posts
    Rep Power
    5
    Quote Originally Posted by Arreks View Post
    I don't think encryption would be the path you want to go down, the problem with encryption is that it's ruled by algorithms. If you know the algorithm and the key/cipher you can get the original code.
    Fixed.

SHARE:
+ Post New Thread

Similar Threads

  1. Replies: 4
    Last Post: 22nd January 2012, 01:14 AM
  2. Encrypt Offline Files
    By HCC in forum Windows 7
    Replies: 1
    Last Post: 17th August 2010, 05:14 PM
  3. Encrypting VBS files
    By Newton in forum Scripts
    Replies: 2
    Last Post: 28th April 2009, 02:37 PM
  4. PHP file lists contents
    By blackcat in forum Web Development
    Replies: 1
    Last Post: 19th January 2008, 09:09 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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