SitePoint Sponsor

User Tag List

Page 1 of 5 12345 LastLast
Results 1 to 25 of 111
  1. #1
    SitePoint Member
    Join Date
    Jun 2004
    Location
    Tarzana, CA
    Posts
    20
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Free PHP script encoder

    I am writing a free (public domain --- no license) PHP script encoder
    similar to CodeLock. It's called FreeLock.
    I was wondering how many of you would be interested in something like this,
    and if so, what features would you like to see supported?

    Here is an example of an encrypted script :
    PHP Code:
    <?php $use_zlib='y'$script_name="test2.php"; if(!file_exists('freelock.php')) {
     echo 
    "freelock not found - exiting"; exit; } 
    $s1="4+vktC7iv1aQss0UmvkY5Uucaa==";
     include_once(
    'freelock.php'); freelock_run($s1); ?>
    I am looking for input to make this really useful...
    If SourceForge approves my project, it will be on there soon.

    Thanks in advance for your input!

  2. #2
    get into it! bigduke's Avatar
    Join Date
    May 2004
    Location
    Australia
    Posts
    847
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I would really like to have this, all i need is uncrackable php code encryption/decryption. The Zend encoder and all others seem unaffordable at the moment.

  3. #3
    SitePoint Member
    Join Date
    Apr 2004
    Location
    Malaysia
    Posts
    23
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Very cool project. Would definitely be interested in this!

  4. #4
    SitePoint Member
    Join Date
    Jun 2004
    Location
    Sydney
    Posts
    12
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Current encryption services are way out of my reach as well.

    Love to hear more about your project.

  5. #5
    SitePoint Member
    Join Date
    Jun 2004
    Location
    Tarzana, CA
    Posts
    20
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Ok - Project info will be on SourceForge

    The project was approved by sourceforge, so it will be up there in a day or two.
    Just go to sourceforge and search for "FreeLock"

    Current features :
    -Limit script to ONE IP address OR one hostname
    -Include files are supported
    -Two different encryption/scrambling modes
    -Crude interface
    -Support for compressed scripts (using ZLib - available on most systems)
    -Since it is open source, you can create your own encrypt/decrypt functions

    If there are more features, please let me know
    bgardner333@yahoo.com

  6. #6
    SitePoint Member
    Join Date
    Jun 2004
    Location
    Tarzana, CA
    Posts
    20
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by bigduke
    I would really like to have this, all i need is uncrackable php code encryption/decryption. The Zend encoder and all others seem unaffordable at the moment.
    Nothing is uncrackable, but you can make it very difficult.
    In the legal sense (if you are distributing commercial software) it would prove that the user had to have intent to modify/re-distribute your script (the cannot plead ignorance)

    But since each program encrypted by freelock can use a different scheme, it will make it that much harder to figure out.

  7. #7
    SitePoint Wizard bronze trophy
    Join Date
    Apr 2003
    Posts
    4,095
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Looking forward to seeing it.

  8. #8
    SitePoint Guru godsfshrmn's Avatar
    Join Date
    Mar 2001
    Posts
    671
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    How/what exactly does this script do?
    s c r i p t s f o r y o u . n e t
    ScriptsForYou

  9. #9
    SitePoint Member
    Join Date
    Jun 2004
    Location
    Tarzana, CA
    Posts
    20
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by godsfshrmn
    How/what exactly does this script do?
    It makes your scripts safe from editing, and optionally can limit the use of the
    script to ONE host/IP address.

    It does this by encrypting/scrambling the script, then (optionally) compressing it, then encoding it to base64

    this script
    PHP Code:
    <?php
    echo "This is an unprotected script.";
    ?>
    Looks like this after you run freelock on it :
    PHP Code:
    <?php $use_zlib='y'; if(!file_exists('freelock.php')) { echo "freelock not found - 
    exiting"
    ; exit; } 
    $s1="Ny3nsSnafix3GBZdArhgqVebgRuegUJgh9lOrIrmmLpNqP07tg7auxX3q7TWO5Vc
    Hqp3/hY0V7XOD1x9xnuV6QtTFxLxQvFmBQduaL+WVwoOj69hCrZP0XR0hnimQXvuC
    Bl/gzNCd5icc9aFOhkZQC8hBzVMSD0+7jPFZdEU18gfpdTg542JaDnPHimMJ6gpfoqkkh
    3Q2ct02UoDdE0tsmarHGAj1i1IP8CsEAA9GtGBRrRGwrZ5nYqEJ03d0b2pmKxNrz6TB38
    a"
    ; include_once('freelock.php'); freelock_run($s1); ?>
    All you need to distribute with your script is freelock.php (which is also encoded)

    Does that help?

  10. #10
    SitePoint Evangelist sputza's Avatar
    Join Date
    Jan 2002
    Location
    Canada
    Posts
    528
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This is a great idea. Keep up the good work!

    Cant wait to use it!
    Steven Watkins
    Chief Web Ninja
    Code Monkey Interactive
    lowgravity.ca

  11. #11
    SitePoint Member
    Join Date
    Jun 2004
    Location
    Tarzana, CA
    Posts
    20
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    It's ready to be looked at and tested

    Ok, it's up on sourceforge now.
    Just go to http://freelock.sourceforge.net

  12. #12
    SitePoint Member joshg678's Avatar
    Join Date
    Jun 2004
    Location
    Home
    Posts
    18
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    im tried to download it, but it dosent work.

    Zip file is missing 6 bytes of data....

    From every mirror i try
    http://www.thrillnerds.com
    http://www.joshrcc.com
    http://kazaa.joshrcc.com

  13. #13
    get into it! bigduke's Avatar
    Join Date
    May 2004
    Location
    Australia
    Posts
    847
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by bgardner333
    Nothing is uncrackable, but you can make it very difficult.
    In the legal sense (if you are distributing commercial software) it would prove that the user had to have intent to modify/re-distribute your script (the cannot plead ignorance)

    But since each program encrypted by freelock can use a different scheme, it will make it that much harder to figure out.
    My current work goes out unprotected, so open source GPL taken for granted without the paper work, however your project will help in delivering an as-is work.

  14. #14
    SitePoint Member
    Join Date
    Jun 2004
    Location
    Tarzana, CA
    Posts
    20
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Oops!! I uploaded it in ASCII mode

    Quote Originally Posted by joshg678
    im tried to download it, but it dosent work.

    Zip file is missing 6 bytes of data....

    From every mirror i try
    I accidentally uploaded the file in ASCII mode, so it corrupted the ZIP.
    It is now fixed.
    I apologize for the inconvenience!

  15. #15
    SitePoint Member joshg678's Avatar
    Join Date
    Jun 2004
    Location
    Home
    Posts
    18
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    allright cool.

    Works now.
    http://www.thrillnerds.com
    http://www.joshrcc.com
    http://kazaa.joshrcc.com

  16. #16
    SitePoint Zealot colinr's Avatar
    Join Date
    Aug 2003
    Location
    san francisco, ca
    Posts
    198
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i don't like the idea... kinda against the whole OSS philosophy isn't it?

    use other people's freely given time and effort (and money) [apache, php, mysql, etc, etc] to write a script and then set up a system where you control who can use it or not....

    I wonder where we would all be if apache/php/mysql used that same thinking....

    secondly, if someone buys a php script package from you, why not let them tailor it to their needs?

    Not that I think you are a bad person er something. just think its kinda hypocritical to make an open-source [its on sourceforge right] program that is built to make other programs (or scripts, etc) closed-source...
    Web Slave

  17. #17
    SitePoint Member
    Join Date
    Jun 2004
    Location
    Tarzana, CA
    Posts
    20
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by colinr
    i don't like the idea... kinda against the whole OSS philosophy isn't it?

    use other people's freely given time and effort (and money) [apache, php, mysql, etc, etc] to write a script and then set up a system where you control who can use it or not....

    I wonder where we would all be if apache/php/mysql used that same thinking....

    secondly, if someone buys a php script package from you, why not let them tailor it to their needs?

    Not that I think you are a bad person er something. just think its kinda hypocritical to make an open-source [its on sourceforge right] program that is built to make other programs (or scripts, etc) closed-source...
    I thought about that when I was writing it. But since even people like me
    who enjoy free or open source software need to make money, and would like to do so with PHP without getting ripped off, I thought this might be useful.

    Besides, there are already commercial versions of this, so I figured might as well
    have an open source one that can fill in for it (and if people actually contribute,
    it will be much better than the aforementioned commercial/closed source options)

    All in all, there are some cases where it really is necessary to maintain a closed
    source policy. For those times, there's FreeLock.

    Wow, I talk a lot

  18. #18
    SitePoint Member
    Join Date
    Jun 2004
    Location
    Tarzana, CA
    Posts
    20
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by joshg678
    allright cool.

    Works now.
    I know it's still pretty crude, but I have 3 jobs so I don't have TOO much free time.

    Let me know what you think about it!

  19. #19
    SitePoint Evangelist
    Join Date
    Jun 2004
    Location
    California
    Posts
    440
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'll be waiting for a later version that is possibly more secure and then I may start using it

  20. #20
    SitePoint Member
    Join Date
    Jun 2004
    Location
    Tarzana, CA
    Posts
    20
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by xmitchx
    I'll be waiting for a later version that is possibly more secure and then I may start using it
    That will be coming sooner than you think!
    I am making improvements constantly, and will soon be ready for production use.

  21. #21
    SitePoint Enthusiast
    Join Date
    Jun 2004
    Location
    Montreal
    Posts
    88
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi bgardner333,
    I just read through your script quickly and saw you had the expiry date to do. Here's what I thought :
    Encrypt your file then take the md5 of the file, substr it to fit the key lenght and use it as a SALT to encrypt the date.

  22. #22
    SitePoint Member
    Join Date
    Jun 2004
    Location
    Tarzana, CA
    Posts
    20
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by louism
    Hi bgardner333,
    I just read through your script quickly and saw you had the expiry date to do. Here's what I thought :
    Encrypt your file then take the md5 of the file, substr it to fit the key lenght and use it as a SALT to encrypt the date.
    Thanks for the input!
    If I use that, I'll definately credit you!

  23. #23
    SitePoint Evangelist Daijoubu's Avatar
    Join Date
    Oct 2002
    Location
    Canada QC
    Posts
    454
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That's going to add lots of overhead :|
    Just stick to mmcache/ioncube encoder...
    Speed & scalability in mind...
    If you find my reply helpful, fell free to give me a point

  24. #24
    SitePoint Evangelist
    Join Date
    Jun 2004
    Location
    California
    Posts
    440
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The problem is that it costs over 200 dollars for the simplest one

  25. #25
    My precious!!! astericks's Avatar
    Join Date
    Mar 2002
    Location
    Vancouver, BC
    Posts
    1,971
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hey brian, i took a look at it. nice script man.

    your addbytes() fn, I made one just like that to encode values being written to cookies

    Again, nice script...As Daijobu mentioned, it's gonna create quite some overhead, encoding one char by one. let's see where it goes from here.

    Good luck


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
  •