Password Hashing In PHP

Programming for Search Engines 101. An area for avid PHP and .NET developers to chat about Programming techniques and how to make better use of search engines.

Moderator: Moderators

Password Hashing In PHP

Postby Sanith » Tue Jan 22, 2013 10:44 pm

What Is Password Hashing
Hashing is not a new concept. It has been in practical use for quite a long time. To understand hashing, think about fingerprints. Every person has a unique fingerprint. Similarly, each string can have a unique fixed-size “digital fingerprint” called a hash. For a good hashing algorithm, it’s very rare that two different strings will have same hash (called a collision).
The most important feature of hashes is that the hash generation process is one way. The one way property indicates that it’s impossible to recover the original text from its hash. Therefore password hashing perfectly suits our need for secure password storage. Instead of storing a password in plain text, we can hash the password and store the resulting hash. If an attacker later gains access to the database, he can’t recover original password from the hash.

More:

Image
Sanith
 
Posts: 13
Joined: Tue Jun 21, 2011 11:31 pm
Tell us why you would like to become a WyseLabs Member:

Re: Password Hashing In PHP

Postby christykunjumon » Wed Jan 23, 2013 12:03 am

Intersting information Sanith, Thanks for the share :)
cK
christykunjumon
 
Posts: 254
Joined: Wed Aug 10, 2011 1:43 am
Tell us why you would like to become a WyseLabs Member:

Re: Password Hashing In PHP

Postby beniston » Wed Jan 23, 2013 6:05 am

This is good Sanith.

When I happened to go through an article, I happened to see that in the forthcoming PHP 5.5 version there is gonna to be a new password hashing function.

http://php.net/manual/en/function.password-hash.php

Note: PHP 5.5 is still in alpha.
beniston
 
Posts: 502
Joined: Wed Nov 02, 2011 4:35 am
Location: Cochin
Tell us why you would like to become a WyseLabs Member:


Return to Programming

Who is online

Users browsing this forum: No registered users and 8 guests