note 19965 deleted from ref.mcrypt by derick
| From: | derick@php.net | Date: | Fri, 25 Apr 2003 19:10:01 +0000 |
| Subject: | note 19965 deleted from ref.mcrypt by derick | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-47106@lists.php.net to get a copy of this message | ||
if you download http://download.sloppycode.net/?d=3 you can use rc4
encryption with PHP 4.*.* on windows.
<br>
regester the dll by going to the directory and typing (regsvr32 rc4dll.dll) <br>
use
<br>
<?
$RC4 = new COM("RC4DLL.Crypt") or die("Unable to load RC4");
echo "(Hello World) encrypted with (My Key) as the key";
echo $RC4->EnCrypt("Hello World","My Key");
echo "\n";
echo "(xú+Ó0°Ð±) encrypted with (My Key) as the key";
echo $RC4->EnCrypt("1óN\ë-®Ø","My Key");
?>