Saturday, May 28, 2011

[phpXperts] Re: Issue with code security

 



Guru,
I am not quite sure why you want to hide your code? Web application development consists of three tier development. Business logic, data access and presentation layer. What you are worried about is presentation layer. In presentation layer - you will most likely be involved in designing the GUI connecting the business logic layer (sometime driven by data access layer). Among these three layer, only presentation layer is exposed to the user. And I assure you there will be more code left behind this presentation layer hidden in business logic and data access layer that you should be worried of, not the presentation layer. So i'd suggest you do more validation in your business logic layer (server script: PHP / ASP.NET) to make it full proof. And hackers are not usually interested in your Javascript / HTML / CSS, cause normally server scripts do all the data access layer manipulation which could be very sensitive. So they are more interested to mess up your database information, not your rocket science Javascript / HTML / CSS. And FYI, to me - the beauty of doing web application is how you organize & manage your presentation layer and exposing it to others who might learn something from you but not hiding it. Web application developer benefits from looking at someone else's JS/CSS/HTML day to day basis. I still do..i am sure you do as well.

Last but not the least, try using some PHP framework which has good data validation security enabled. Get use to PHP5+ OOP and use MVC architectural pattern.

Thanks
Yamin

--- In phpexperts@yahoogroups.com, Guru™ <nagendra802000@...> wrote:
>
> Hi All,
>
> I tried few encryption tools. It converted my php file into some type of
> codes. But again when the Firefox reads the files you can see the whole
> codes. Now sure what Firefox does but I guess it decrypts the php files. So,
> I guess the tools are useless. I was thinking to use PHP inside HTML. Will
> that work??
>

__._,_.___
Recent Activity:
Visit phpXperts website at www.phpxperts.net
MARKETPLACE

Find useful articles and helpful tips on living with Fibromyalgia. Visit the Fibromyalgia Zone today!


Stay on top of your group activity without leaving the page you're on - Get the Yahoo! Toolbar now.

.

__,_._,___

No comments: