Click to See Complete Forum and Search --> : Reconfiguring PHP for mcrypt


Anon
06-10-2001, 02:35 PM
Hey folks,

I asked this question in the "General" Forum but figured it would be better served over here.

I already have PHP4 set up as a module of Apache. The thing I won't to do now is add mcrypt functionality. I know I need to ./configure --with-mcrypt=DIR; make;make install.

But do I have to reconfigure apache also? It seems like a pain in the a#$. Or is there a simpler, easier way of reconfiguring my PHP setup?

Thanks in advance,
Tim

ik_saran
06-10-2001, 10:03 PM
Dear Tim

Me too having the same probs i run Php in apache bundle ... now i'm in need of using mcript_ecb() function ... but of no use its not working (I hope we should have mcrypt compiled support in PHP)

i'll give u my code also just try it if it works Pls let me too

<?
$key = "late";
$str = "Vamsi is always too late to the office";

$encryp = mcrypt_ecb(MCRYPT_TripleDES,$key,$str,MCRYPT_ENCRYPT);
$decryp = mcrypt_ecb(MCRYPT_TripleDES,$key,$str,MCRYPT_DECRIPT);

echo"The encrypted string is $encryp<br>";
echo"The decrypted string is $decryp";
?>

Thankz in advance
Saran