Free PHP script encoder

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!

That’s going to add lots of overhead :expressionless:
Just stick to mmcache/ioncube encoder…

The problem is that it costs over 200 dollars for the simplest one

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 :slight_smile:

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. :slight_smile:

Good luck

But doesn’t that require a server mod?

Thanks!
The one-by-one byte encoding is just an example.
THe whole point of making it open source is so that people
can write custom crypt routines.

But I am researching on better ways to do long string encryption
(I will be adding password lock capability in the future, as well)

that’s nothing compared to even one person ripping off your source and redistributing it as their own…

Hehe… my name on PHPBuilder is silent… how strange. :slight_smile:

I have a new encryption method coming soon…
I will be using mcrypt functions (optionally - since it isn’t available on all systems)
I have been playing around with Rijndael-128 in CFB mode. It’s pretty kick-***.
Just thought I’d post an update.
Version 1.0 should be out in a week or so (hopefully — I have 3 jobs :frowning: )

So you were the one that took it before me! :slight_smile:

I guess everyone will just have to figure out which silent is which on all the other forums!

As if any other forum really comes close?!

cheers,

jay

I just released FreeLock version 0.9.5 beta.
It adds MCrypt support (using Rijndael-256 – a very fast and secure algorithm)
Next features will (possibly be) :
supporting scripts that break in and out of PHP.
directory traversal during encoding
custom PHP extension for more secure encoding/decoding

http://freelock.sourceforge.net

MMCache loader can be dl()'ed
Not sure about the ionCube one

And many host have them anyway :wink:

I am working on writing a PHP extension (that will be optional)
for this purpose. It will just dl() as well.
The only reason I do not want to make it mandatory is that
you can not dl() on a threaded server (so if it’s running as an apache module on a threaded apache, it won’t work)

I want this to be usable on as many systems as possible.
But I think that the use of a php module would increase security/performance
greatly. (It’s just kind of a ***** to write a php module)

mmcache have pre-built binaries for win32 :wink:

That’s all well and good, but I want people to be able to distribute their
scripts to people who have hosting companies that do not have/will not install
a module.

Work is coming along very slowly on the module though… it’s very difficult
(because my C is VERY rusty)

Who knows, maybe if I make it good enough, I can request that it be included
with PHP’s distribution at some point (yeah right) :slight_smile:

I am getting nothing but parse errors on the encoded script:

Parse error: parse error, unexpected '<' in public_html/ex/frelock/fr/freelock.php(1) :
eval()'d code(44) : eval()'d code on line 15

Ahh! there was plain HTML in the file before encoding. Hmm… got to be a way of improving on this.

I am on a windows machine, and call to undefined function file_get_contents… I have PHP 4.1.6, blah!

I thought about buying an ecrypter ages ago… but I wonder – how would the end user like this?

For example, how could one customize my product if it is all jumbled???

Hmm… well I made my own file_get_contents function, and now it says token_get_all…

If this is all needed for the encryption… fine, I could live with encoding on a remote server… but what about when the end-user runs it? Do you have the system requirements listed for running an encrypted file?