问题
I have a module for a zencart which requires Blowfish Encryption on my server. At the moment I'm just testing on my localhost which is xampp on a windows machine.
Ive googled and looked on stackoverflow but can't find any instructions (at least that I understand) on how to do it.
Is it even possible?
thanks :)
回答1:
Actually, if you use the latest XAMPP, mcrypt is installed by default. According to the PHP website:
PHP 5.3 Windows binaries uses the static version of the MCrypt library, no DLL are needed.
If you use PHP 5.2.x:
- Download the Win32 binaries from http://windows.php.net/download/. Ensure which PHP version you have, as you can see there are different ones.
- Copy
php_mcrypt.dll
to PHP'sext
directory, andlibmcrypt.dll
to Apache'sbin
directory. - Add the following line to the extensions section in
php.ini
:extension=php_mcrypt.dll
. - Finally, restart Apache.
It should work okay. :)
来源:https://stackoverflow.com/questions/8346711/install-crypt-blowfish-on-xampp-on-windows