note 11200 added to md5
| From: | superduper at hacker_therapy dot com | Date: | Fri, 09 Feb 2001 16:38:05 +0000 |
| Subject: | note 11200 added to md5 | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-10856@lists.php.net to get a copy of this message | ||
And here is a 5-MD5 mod of the R-MD5... in case you need that many keys...
$key1 = "This is key number 1";
$key2 = "This is key number 2";
$key3 = "This is key number 3";
$key4 = "This is key number 4";
$key5 = "This is key number 5";
$string = "Lion eats rabbit";
$enc = base64_encode(keyED(encrypt(keyED(encrypt(keyED($text,$key1),$key2),$key3),$key4),$key5));
$dec = keyED(decrypt(keyED(decrypt(keyED(base64_decode($enc),$key4),$key5),$key3),$key2),$key1);
http://www.php.net/manual/en/function.md5.php