PHP Classes

Metalix Encryption: Generate hash of string applying MD5 several times

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in
  Info   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum (2)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2010-10-14 (5 years ago) RSS 2.0 feedNot enough user ratingsTotal: 356 All time: 6,450 This week: 1,082Up
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: 25
All time rank: 254612 in New Zealand New Zealand
Week rank: 1611 Up8 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  
 0%Total:356All time:6,450
 This week:0This week:1,082Up
 User Comments (1)  
This is ridiculous.
5 years ago (Cujo NZ)