How Can I Secure My .php Source Code by MD5 hash ?

Discussions of secure PHP coding. Security in software is important, so don't be afraid to ask. And when answering: be anal. Nitpick. No security vulnerability is too small.

Moderator: General Moderators

Post Reply
User avatar
hassanshahi
Forum Newbie
Posts: 3
Joined: Sun Jan 25, 2009 3:19 am

How Can I Secure My .php Source Code by MD5 hash ?

Post by hassanshahi »

Dear Friends,


I need to hash my scripts and my php files running on server.


specially thanks for any comments.
Hassanshahi :)
hassanshahi@gmail.com
Hannes2k
Forum Contributor
Posts: 102
Joined: Fri Oct 24, 2008 12:22 pm

Re: How Can I Secure My .php Source Code by MD5 hash ?

Post by Hannes2k »

Why??
User avatar
kaisellgren
DevNet Resident
Posts: 1675
Joined: Sat Jan 07, 2006 5:52 am
Location: Lahti, Finland.

Re: How Can I Secure My .php Source Code by MD5 hash ?

Post by kaisellgren »

Hannes2k wrote:Why??
User avatar
hassanshahi
Forum Newbie
Posts: 3
Joined: Sun Jan 25, 2009 3:19 am

Re: How Can I Secure My .php Source Code by MD5 hash ?

Post by hassanshahi »

Hannes2k wrote:Why??

Hi Hannes2k,
Hi Kai,

I'm working on a project based on PHP 5 and MySQL 5 about ' Universal Product of Accountancy ' and I need to secure all the codes running on server and so on the HTML codes generated by PHP scripts, because of Safety Client Information, So I need your help about it.

Thank you for your attention.
:P :P :P Hassanshahi
jmut
Forum Regular
Posts: 945
Joined: Tue Jul 05, 2005 3:54 am
Location: Sofia, Bulgaria
Contact:

Re: How Can I Secure My .php Source Code by MD5 hash ?

Post by jmut »

Html and javascript is always visible. As for securing your code there is software for this like Zend Guard and the like.
User avatar
Apollo
Forum Regular
Posts: 794
Joined: Wed Apr 30, 2008 2:34 am

Re: How Can I Secure My .php Source Code by MD5 hash ?

Post by Apollo »

You want to secure the HTML codes generated by PHP scripts? But... they're dynamic, right? (otherwise I guess you wouldn't be using PHP)
User avatar
kaisellgren
DevNet Resident
Posts: 1675
Joined: Sat Jan 07, 2006 5:52 am
Location: Lahti, Finland.

Re: How Can I Secure My .php Source Code by MD5 hash ?

Post by kaisellgren »

Apollo wrote:You want to secure the HTML codes generated by PHP scripts? But... they're dynamic, right? (otherwise I guess you wouldn't be using PHP)
Not necessarily. PHP is not just for dynamic websites. PHP provides a huge list of tools and I myself use some of them as system administrative tools (socket, stream, port, dns, etc) even though I do not need them in my website. A database could be used for just logging or other purposes non-related to the website, but for sure the common reason to use PHP is to allow dynamic websites.

Hiding CSS, JS, HTML, ... is impossible. Also, web browsers tend to modify the HTML source - for example in Firefox creating a HTML table with XHTML document definition will make Fx to change your HTML source.

Hiding PHP is impossible too in theory. However, in practise Zend Guard does the job best. I've decoded several encoded scripts (namely FirewallScript, Torrent scripts, ...) and I must say that you get what you pay for - Zend Guard is far better than free encoders or other solutions. I've never managed to beat the new Zend Guard 5.

You may want to be interested in this (black hat stuff hehe): http://www.zendecode.com/
User avatar
hassanshahi
Forum Newbie
Posts: 3
Joined: Sun Jan 25, 2009 3:19 am

Re: How Can I Secure My .php Source Code by MD5 hash ?

Post by hassanshahi »

kaisellgren wrote:
Apollo wrote:You want to secure the HTML codes generated by PHP scripts? But... they're dynamic, right? (otherwise I guess you wouldn't be using PHP)
Not necessarily. PHP is not just for dynamic websites....

Dear Kai,

I Wish The Best For You, I Impressed Of You and Your Latest Post.
I Got My Answer :P
So Earlier , I Used HTML Encoder that Encrypts My Codes With a Password and It Works Well.
I Don't Remember That Software Name, But If Someone Need It, I Will Search In My Library!

Thank You Very Much.
Hassanshahi


When We Work Together...
We Win Together...
Post Reply