Website Login Security : Comparison of Java and PHP

Login and authentication is the basic and important function in almost all websites. I will just give a summary of my research and how login and authentication is done in JAVA and PHP.

JAVA

By using Spring Securities and Spring MVC jars ( by using Maven or downloading the jar files from the internet ), Website login can be easily created by following tutorial instructions. The basic tutorial with authentication can be created in just one day ( according to my experience ). SQL authentication is not yet included from the basic, but can be easily added. Knowledge of Spring MVC and Servlet Filters are also needed to understand the concept.

Spring Security tutorials by Mkyong
http://www.mkyong.com/tutorials/spring-security-tutorials/

The basic Spring Security example
http://www.mkyong.com/spring-security/spring-security-hello-world-example/

PHP

I also researched on how to this in PHP, and saw results with core PHP and another using Laravel. PHP is known to have very unstable and messy code ( which is why maintainability is an issue ). But with Laravel Framework, PHP code is improved.

PHP hardcode using MYSQL database for secure login
http://www.wikihow.com/Create-a-Secure-Login-Script-in-PHP-and-MySQL

PHP authentication using Laravel
http://laravel.com/docs/5.0/authentication

Laravel features discussed including login and authentication
http://code.tutsplus.com/tutorials/why-laravel-is-taking-the-php-community-by-storm–pre-

PHP and JAVA codes are very different in syntax and implementation, and both languages has its advantage and disadvantage.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s