SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Zealot
    Join Date
    Sep 2008
    Posts
    111
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to encrypt a php file

    Hi to all,

    I want to encrypt the php file so no one can change the file contents.

    For example we have a file enc.php

    <?php

    echo "Encrypt PHP FILE";

    ?>

    i want to put the code after encryption to enc.php and but file should work normally .

    is it possible if yes how.

    regards.

  2. #2
    Twitter: @AnthonySterling silver trophy AnthonySterling's Avatar
    Join Date
    Apr 2008
    Location
    North-East, UK.
    Posts
    6,111
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Take a look at either Zend Guard or IonCube Encoder.
    @AnthonySterling: I'm a PHP developer, a consultant for oopnorth.com and the organiser of @phpne, a PHP User Group covering the North-East of England.

  3. #3
    SitePoint Guru
    Join Date
    Feb 2008
    Posts
    655
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You can use something like Zend Guard or ionCube.

    The only drawback is that whoever is executing the encrpted file has to have the decoder installed on their server.

  4. #4
    SitePoint Zealot
    Join Date
    Sep 2008
    Posts
    111
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks for reply

    Actually i have a script and want to sell that script .problem is that may be someone purchase that script and redistribut it.

    thats why i want to make a domain check.by incrementing the script.

    if any other method which is helpfull to do this.

    kindly help.

    regards.

  5. #5
    . shoooo... silver trophy logic_earth's Avatar
    Join Date
    Oct 2005
    Location
    CA
    Posts
    9,013
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by pearl_123 View Post
    thanks for reply

    Actually i have a script and want to sell that script .problem is that may be someone purchase that script and redistribut it.

    thats why i want to make a domain check.by incrementing the script.

    if any other method which is helpfull to do this.

    kindly help.

    regards.
    The two links provided above will do that.
    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
  •