PHP Classes

Metalix Encryption: Generate hash of string applying MD5 several times

Recommend this page to a friend!
  Info   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum (2)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 45%Total: 369 All time: 6,749 This week: 413Up
Version License PHP version Categories
metalix 1.0GNU General Publi...5PHP 5, Cryptography, Security
Description Author

This class can be used to generate an hash of string applying MD5 several times.

It takes a given string and applies the MD5 hashing algorithm several times to make it much harder revert to the original string.

Innovation Award
PHP Programming Innovation award nominee
October 2010
Number 5

Prize: One license of ScriptCase Enterprise edition
MD5 is an hashing algorithm often used to store passwords in a way that can be verified later.

However, security attacks often use dictionaries of MD5 hashes to discover the original passwords.

This class implements of different approach to compute hashes using MD5 that makes it much harder to build MD5 dictionaries. It applies MD5 several times, thus making it more difficult to discover the original passwords.

Manuel Lemos
Picture of Alex Telford
Name: Alex Telford <contact>
Classes: 2 packages by
Country: New Zealand New Zealand
Age: 30
All time rank: 268413 in New Zealand New Zealand
Week rank: 599 Up4 in New Zealand New Zealand Up
Innovation award
Innovation award
Nominee: 1x

DOCUMENTATION for metalix class v1.0

1. include the file

2. initiate the class
	$test = new metalix('mytext');

3.[optional] output
	echo $test;

I recommend you change the default options within the class

change $this->code = '' to any preferred string. (a random hash is best)
   - this is the string used on either side of the md5 during the encryption process

change $this->level = 10 to any number (try less than 25 so as not to crash the server)
   - this is the number of times the metalix class will run

change $this->add = 5 to any number (try less than 25 so as not to crash the server)
   - this is the number of characters that is added to each side of the md5 hash
  Files folder image Files  
File Role Description
Plain text file metalix.php Class main source
Accessible without login Plain text file README.txt Doc. readme file

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:6,749
This week:413Up
User Ratings User Comments (1)
 All time
This is ridiculous.
11 years ago (Cujo NZ)
For more information send a message to info at phpclasses dot org.