Easy method to encode password Using PHP


We are all used to using MD5() for generating hashes when saving passwords using php and mysql. But I read some where that method is not that secure. So here is an alternative.

To encode the password before saving use,

base64_encode('password');

to decode the password after retrieving use,

base64_decode('password');


Advertisements

Let me know what you think .. :)

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