PHP MySQL ebook
February 12, 2011 – 4:57 pm | No Comment

Hey everyone!!
With this section I hope to share with you resources which I have tried and valued
So you’re new to PHP and want to learn from scratch. Well I was in your position not too …

Read the full story »
SEO Tutorials

Need help with Search Engine Optimisation? This is the place to look for the latest tips and hints with the advice we offer. Keep an eye out here for the latest posts.

PHP Tutorials

Learn how to code with PHP to achieve your goal. In here I aim to show and teach you about little tips and tricks that should enhance your coding abilities

Flash Tutorials

Learn how to use Adobe Flash for your own purposes. Little tips and hints to help you along

Website Development

In here I aim to help you with developing your website from scratch. Come here for various tips and pieces of advice to help you build and improve your website.

Home » PHP Tutorials

MD5

Submitted by on July 29, 2007 – 3:19 pmNo Comment

MD5, a hash encryption of texts. although it is supposed to be uncovertable it can be converted back recently. it is a very easy function to use but used a lot in sending encrypted data and storing it, like this forum it uses it to store passwords. this is how it works:

PHP:
  1. $text="test text";
  2. $encrypted= md5($text);
  3. echo $encrypted;

this will output 1e2db57dd6527ad4f8f281ab028d2c70. but to make it more secure like what IPB does it to double encrypt it. so it looks like this:

PHP:
  1. $text="test text";
  2. $encrypted= md5(md5($text));
  3. echo $encrypted;

this will output: a932721fa7514980123ca95f1e94cb47 which is harder to crack because it is an encryption of an encryption.

hope that helps.

VN:F [1.9.13_1145]
Rating: 4.5/10 (2 votes cast)
VN:F [1.9.13_1145]
Rating: -1 (from 1 vote)
MD5, 4.5 out of 10 based on 2 ratings

Popularity: unranked [?]

Leave a comment!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

This is a Gravatar-enabled weblog. To get your own globally-recognized-avatar, please register at Gravatar.