Can you tell me how to encrypt php and javascript source code file include function names,variables,and so on.
how to encrypt php source file?
Just out of cursosity.. what are you trying to do ?.
If you are trying to stop people from viewing your PHP source from the browser then their is no need to encrypt, as PHP code is not sent to the browser. Only HTML generated by the php code is.
Therefire their is no way of people being able to view the source, unless they have direct access to your server.
Javascript on the other hand runs on the client, so it is possible to view the source.
Anand
[deleted]
Step back and think:
What will happen if someone breaks the encryption and discovers my code, my variables, etc?
Now that you've answered that question, fix what will happen, and forget about encryption, because if someones wants to crack your code, s/he will.
F.
Is there a way to view the Javascript if its included with a .js file? Not that it really matters, I just thought that hid it from casual viewing.
yes, just point your browser to the .js file and save it..
F.
when someone buy my software that written by php.I want to make it unreadable,so I must to encrypt my web pages source code in some way.
what I want to do is :
Make PHP sourcecode almost impossible to read and edit for normal humans. Is there a simple way to protect my PHP sourcecode from people who would like to adjust it or who would like to know its workings? Now I can deploy your application and feel pretty safe about it.
I see, you want to distribute you PHP applications to people, who may have access to your source.
I know that if you use CGI, you can compile the perl code into an exe, but not sure wether this can be done in PHP.
Im gonna look it up today to see wether it is possible.
What you could do is write an encrypting algorithm (plenty available on the internet), that encrypts your sourcecode. The when you want to use it you decrypt it and run it as PHP code.
You could md5 (or other mechanism) your source file, and have a main php program that would "de-md5" a page as needed.
$page could be a parameter in the url
<?php
$page = fread (... my encrypted php page ..)
then "de-md5" $page
and eval($page)
?>
Thanks, nice to meet you!
You just do me a help.I see what you said.
thanks!
Can you tell me some tools to encrypt php source file?
i want to encrypt erery function that a write by me , include php and javascript function.
Well, you can certainly use the zend encoder, unfortunately it costs about $2800...
http://www.zend.com/store/products/zend-encoder.php
chris
We're about to start building one, but I think it will not be ready for a month or so. The cost we are planning on will be around $199 which I think is a much more reasonable figure
All the best to everyone
Ade
Hello,
There is a free tools that may do the job:
I have not played much with it, but I think it is worth to try. :-)
Reyner Natahamidjaja
Thanks for this. It looks quite interesting. I still think I'll go and create this encryption app anyway as it will be useful for us
THanks
Ade
Hi Adrian,
I didn't mean at all to convey you to do otherwise :-) Please do so. And when you're done, would you post it in here please? I would be interested in your solution as well.
Thank you,
Reyner
I have visited http://pobs.mywalhalla.net/ .
And I have used the tool it provides,but there a lots of bugs in the page called pobs.php.
But it just do me a help ,it just tell me the way how to do that!
Firstly,clean the comments in your code.
Secondly,clean indents,returns
so you can make your code unreadable!
But it doesn't work when I want to replace my function's name in a way .But unfortunately it haven't come true yet!
Reyner Natahamidjaja wrote:
Hello,
There is a free tools that may do the job:
I have not played much with it, but I think it is worth to try. :-)
Reyner Natahamidjaja
[deleted]
guys,
encryption is good, but you should concentrate on what happens when the file is decrypted. If your file is interesting, then some hacker will want to decrypt it. Think about what will happen when it is decrypted, this is more important than encrypting your file!
When I want to hide something from someone, the first thing I concentrate on is "what will happen if someone finds it?" then go from there. Do not rely on encryption for safety, that's my message.