Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Setup Mcrypt

Status
Not open for further replies.

DaveShaw

Programmer
Jul 9, 2001
35
GB
I Have BadBlue PHP Enabled Web Server Running PHP Version 4.0.7 Win 32 Version Downloaded From Snaps.php.net. I have windows 98 Running. I have downloaded A *.ZIP php Mcrypt Library and a *.ZIP Php mcrypt File - Both Win32. I cannot find any documentation on how to get the PHP.exe to use the mcrypt en/decryption modules can anyone help me Plz???

Thanx Dave Shaw.
 
if these libraries you downloaded are true PHP modules/extensions/libraries, you have to dynamically load them into your scripts.

Place the mcrypt/mhash stuff into your extensions folder under the php folder (c:\php\extensions).

NOTE: THE PHP PACKAGE FOR WINDOWS SHOULD HAVE ALREADY COME WITH THE MCRYPT LIBRARY! IF YOU DON'T SEE THE PHP_MCRYPT.DLL IN THE EXTENSIONS FOLDER, YOU NEED TO CONTACT THE PEOPLE WHO DISTRIBUTED THE VERSION OF PHP YOU HAVE AND CHEW THEM OUT.

Once you have the php_mcrypt.dll or whatever else the name of the library is, you have to load it into your script(s):

dl("extensions/php_mcrypt.dll");

or

dl("php_mcrypt.dll");

depending on your php.ini configuration.

If you got this far, you are ready to use mcrypt for encrypting/decrypting your strings/data.

If you need help using mcrypt, say so and I will be happy to assist. It is very simple.

Chad.
 
Hi,

I'm also starting with mcrypt but do not have the mcrypt dll's in my extension dir. Can anyone please tell me wher to get this?

thanx alot ######## CtN ########
 
currv,

I assume you are on Win32? If so, you should download PHP from The wind32 version of PHP comes with all of the dlls required for you to include in your scripts.

If you are not on Win32, but on Linux or some derivative thereof, go to ftp://mcrypt.hellug.gr/pub/mcrypt/libmcrypt to download the libmcrypt stuff (be sure to read ALL documentation. Installation can be tricky). libmcrypt has to be installed before you compile PHP because when you run ./configure to build PHP, you do '--with-mcrypt=/path/to/mcrypt/installation --disable-posix-threads'

Chad.
 
chad,

The php_mcrypt.dll is not included with any win32 version of php. I'm currently using 4.06. I have alot of extensions exept php_mcrypt.dll.

Anyway thanx for your help

######## CtN ########
 
curvv,

I have the php_mcrypt.dll for you if you want to try it.

You can find me on ICQ if you would like the file.

Chad. ICQ: 54380631
 
Chad,

thanx alot.
I'll probably be back online only in a week or two from now.
I'll find you on ICQ then.

thanx
######## CtN ########
 
I Do not have the PHP_Mcrypt.dll File. Can someone please post it on a web site and give me instructions on what to do with it. i only have PHP 4.0.6 Now.
I Have IQC - # 124043300, MSN Viper1777@hotmail.com and Yahoo Skill_1584@yahoo.com plz let me know.

Thanx Dave
 
Viper,

When you get the file, all you do is copy it to your extensions directory and then edit your php.ini file.
Remove the ; infront of ;extension=php_mcrypt.dll. Also make sure extension_dir points correctly to your extensions location. Mine looks like this:
extension_dir = d:\php\extensions

Hope this helps ######## CtN ########
 
Viper,

Chad sent me his ICQ# so he can give me php_mcrypt.dll. I do not have ICQ access at the moment. So if you want I can give you his ICQ and you can also give the file to me.

Hows that sound? ######## CtN ########
 
Curvv and Viper,

Here is the location on my server for the mcrypt dll for Win32:

ftp://ftp.inlandpac.com/pub/php_mcrypt.dll

Good Luck!

Chad. ICQ: 54380631
 
thanx very much for your trouble.

Only problem is, I do not have ftp access from where I am.

Any http link for this file??

thanx ######## CtN ########
 
thanx alot for your help.

Only problem is that I do not have ftp access from wher I am at the moment. Any http links I can follow for this file?

thanx ######## CtN ########
 
Chad, When I run any php script through my server it hangs and takes ages to load a simple 'Hello User' Program. I have used 2 versions of PHP_Mcrypt.dll and the same has happend again, do i need a library or other files, and if so where do i install them.

Thanx Dave Shaw.
 
I have the same problem as Viper.

Just with the echo phpinfo(); it takes an eternity to run.

Is there anyother way?

Anikin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top