BIRT 3.7
Written by: Michael Williams
Featured Refcardz: Top Refcardz:
  1. Scrum
  2. Apache Maven 2
  3. Essential MySQL
  4. Node.js
  5. Groovy
  1. jQuery Selectors
  2. Ajax
  3. Java
  4. Spring Config.
  5. Java Concurrency

Link Details

Link 132740 thumbnail
User 291091 avatar

By DigitalDuffman
via krissteele.net
Published: Nov 10 2008 / 12:07

Never store passwords as plain text. Here is a simple function that will take a string and make it into an MD5 encryption, making the world a more secure place in one fell swoop.
  • 6
  • 9
  • 1940
  • 1

Comments

Add your comment
User 349415 avatar

mheath.myopenid.com replied ago:

0 votes Vote down Vote up Reply

It's not enough to simply hash the password. A salt should be used to make the "rainbow table" attack mentioned in the article less useful. Given the fact that MD5 has known vulnerabilities, a SHA-2 family hashing function (SHA-256, SHA-384, or SHA-512) would be a better choice.

User 258821 avatar

leafnode replied ago:

0 votes Vote down Vote up Reply

MD5 is not an encryption algorithm. Encryption is reversible.

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.