install crypt blowfish on xampp on windows

为君一笑 提交于 2020-02-08 02:30:53

问题


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:

  1. Download the Win32 binaries from http://windows.php.net/download/. Ensure which PHP version you have, as you can see there are different ones.
  2. Copy php_mcrypt.dll to PHP's ext directory, and libmcrypt.dll to Apache's bin directory.
  3. Add the following line to the extensions section in php.ini: extension=php_mcrypt.dll.
  4. Finally, restart Apache.

It should work okay. :)



来源:https://stackoverflow.com/questions/8346711/install-crypt-blowfish-on-xampp-on-windows

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!