Programming Tutorials Browser Tutorials Articles Struts Tutorials Hibernate Tutorials

  Tutorial: PHP Security MD5 Encryption Tutorial

Protect your user's information with MD5 hases in PHP.

Tutorial Details:

PHP/MySQL and Visual Basic with easy

Security is a huge issue on the internet, and you will notice this more and more as you start to code proper websites where protecting your information is as valuable as making a website colourful and attractive to the users.

When you start a membership system, one thing you are going to need to take from your users is a password. Your users will not like the fact that you are storing their password in a "clear text" form. It would be a lot better if you could use a one-way encryption method right?

Md5 is a very easy and quick way to add a load of security to your website. You must remember that md5 is NOT PERFECT .

PHP Code
$text = "This is the text that I want to encrypt" ;
$encrypted_text = md5 ( $text );
echo "The md5 hash of: $text
is $encrypted_text" ;
?>

The GREAT thing about md5 is that you can't actually decrypt it. The only way you will ever know what went into making the hash is to brute force it, and that can take hours. The fact of the matter is that if someone wants to know whats in the hash bad enough, they will brute force it for days/hours until they get it.
Okay, its encrypted.. but how do i check if passwords are correct now that I can never get the clear text back!?

Easy, encrypt the text that you want to check, then if that hash matches the hash that you have stored, the password is correct.

Md5 is a great way to add some security to your user's information.


 

Read Tutorial at: Click here to view the tutorial

Rate Tutorial:
PHP Security MD5 Encryption Tutorial

View Tutorial:
PHP Security MD5 Encryption Tutorial

Related Tutorials:

Signed and delivered: An introduction to security and authentication - JavaWorld - December 1998
Signed and delivered: An introduction to security and authentication - JavaWorld - December 1998
 
Java security evolution and concepts, Part 1: Security nuts and bolts - JavaWorld April 2000
Java security evolution and concepts, Part 1: Security nuts and bolts - JavaWorld April 2000
 
Construct secure networked applications with certificates, Part 1 - JavaWorld January 2001
Construct secure networked applications with certificates, Part 1 - JavaWorld January 2001
 
XML messaging, Part 1 - JavaWorld March 2001
XML messaging, Part 1 - JavaWorld March 2001
 
Java security evolution and concepts, Part 4
Java security evolution and concepts, Part 4
 
Customized EJB security in JBoss
Customized EJB security in JBoss
 
Yes, you can secure your Web services documents, Part 1
Yes, you can secure your Web services documents, Part 1
 
Yes, you can secure your Web services documents, Part 2
Yes, you can secure your Web services documents, Part 2
 
Secure Web services
Secure Web services
 
The J2EE 1.4 Tutorial
The J2EE 1.4 Tutorial is a guide to developing enterprise applications for the Java 2 Platform, Enterprise Edition (J2EE) version 1.4. Here we cover all the things you need to know to make the best use of this tutorial.
 
An Introduction to Cryptography and the Java Cryptography Extension
An Introduction to Cryptography and the Java Cryptography Extension The Java Cryptography Extension (JCE) provides APIs for performing cryptographic operations in Java code. the JCE lets us scramble and unscramble data, annotate code and data with infor
 
Jeff Schmitt's JDBC Page
This tutorial assumes you are using the MySQL database and the GWE JDBC drivers. The host computer is triton.towson.edu.
 
JavaTM Secure Socket Extension (JSSE)
The JavaTM Secure Socket Extension (JSSE) is a Java package that enables secure Internet communications. It implements a Java version of SSL (Secure Sockets Layer) and TLS (Transport Layer Security) protocols and includes functionality for data encryption
 
Understanding Network Class Loaders Class loaders
One of the cornerstones of Java dynamics, determine when and how classes can be added to a running Java environment.
 
We are providing Downloadable Version of Mandrake 10.1 Official Edition Linux CD's.
We are providing Downloadable Version of Mandrake 10.1 Official Edition Linux CD's. Mandrake 10.1 Official Edition Linux Now Available Mandrake 10.1 Official Edition CD's Mandrakelinux 10.1 Official is a new-generation Linux operating system for
 
We are providing Downloadable Version of Mandrake 10.1 Power Pack Linux CD's.
We are providing Downloadable Version of Mandrake 10.1 Power Pack Linux CD's. Mandrake 10.1 Power Pack Linux Now Available Mandrake 10.1 Power Pack CD's Power Pack is a Linux system that will appeal to all advanced users. It's great for Office
 
Web Hosting Guide. What is Web Hosting Plan?
Web Hosting Guide. What is Web Hosting Plan? What is Web Hosting Plan? Web hosting plan is the different plans provided by Hosting Companies for hosting your web site. Web hosting plans include the storage limit, bandwidth, access to server
 
What is Web Hosting
What is Web Hosting What is Web Hosting? What is Web Hosting? If you have a company and want web presence than you need a website. With the website any one from the world must be able to view your pages, images etc. Website is actually a
 
A Practical Roadmap for Deploying Enterprise Web Applications: Taking the First Step
This article covers important decision points around the availability, scalability, and security that are needed for enterprise web applications.
 
Integrating Java Open Single Sign-On in Pluto
This article shows how to integrate Java Open Single Sign-On in Apache\'s Pluto portlet container.
 
Site navigation
 

 

Send your comments, Suggestions or Queries regarding this site at roseindia_net@yahoo.com.

Copyright © 2006. All rights reserved.