Re: mcrypt win32 install problem ?
| From: | speedfreak at chello dot be | Date: | Wed, 21 Jan 2004 16:16:22 +0000 |
| Subject: | Re: mcrypt win32 install problem ? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-175307@lists.php.net to get a copy of this message | ||
Tom Rogers wrote:
> Hi,
>
> Wednesday, January 21, 2004, 9:09:40 PM, you wrote:
> VD> Hi,
>
> VD> I want to use the mcrypt module and I followed the
> VD> instructions to install the dll for Win32 users :
> VD> I copied the libmcrypt.dll file under c:\winnt\system32
> VD> I uncommented the "extension=php_mcrypt.dll" in the php.ini
> VD> I restarted the computer
>
> VD> I tried many examples available in the Net. The result is always the same :
> VD> I can crypt a plain text but I cannot Uncrypt that text. Do
> VD> you see any potential reason to this?
> VD> I guess this problem is related to my computer / configuration...
>
> VD> current config
> VD> PHP 4.3.4
> VD> Win 2000
> VD> PEAR
>
>
> VD> php in fo seems correct about mcrypt
>
> It seems they changed the name of the deinit function in windows, use
>
> mcrypt_generic_end($td);
>
> instead of
> mcrypt_generic_deinit($td);
>
> --
> regards,
> Tom
Hi Tom, Vincent, list,
Tom, your response caused some confusion here. I have mcrypt running on win32
(Win98, Apache 1.3.29 & 2.0.48, PHP 4.3.4 & PHP 5beta3) and am in fact using
mcrypt_generic_deinit() succesfully to encrypt/decrypt... This in accordance to the
most recent PHP documentation, which exactly opposes your statement:
mcrypt_generic_end
(PHP 4 >= 4.0.2)
mcrypt_generic_end -- This function terminates encryption
Description
bool mcrypt_generic_end ( resource td)
Warning
This function is deprecated, use mcrypt_generic_deinit() instead.
It can cause crashes when used with mcrypt_module_close() due
to multiple buffer frees.
So maybe something else is causing Vincent's problem to decrypt. Without further
code snippets it is very hard to pin it down...
Regards,
speedfreak