Jump to content

Recommended Posts

Hi,

 

I'm following the tutorial on this page: http://www.phpfreaks.com/tutorials/128/2.php and I've created 2 files, one called phpFreaksCrypto.class.php5 and the other one called encryptDecrypt.php in which I've just copied and pasted the code from the tutorial straight across. When I try to run it I get the following:

 

Warning: dl() [function.dl]: Not supported in multithreaded Web servers - use extension=php_mcrypt.dll in your php.ini in C:\_cathy\websites\phpFreaksCrypto.class.php5 on line 29

The Mcrypt module could not be loaded.

Fatal error: Call to undefined function mcrypt_generic_deinit() in C:\_cathy\websites\phpFreaksCrypto.class.php5 on line 82

 

Am I supposed to change something in the php.ini file? I've tried uncommenting the line extension=php_mcrypt.dll but nothing happened...

 

Thanks for any help!

Link to comment
https://forums.phpfreaks.com/topic/65229-mcrypt/
Share on other sites

Actually I got it working now, I needed to copy libmcrypt.dll into my systems folder.. forgot about needing to do that OOPS~!

 

Anyway I got another questions..

 

I'm gonna encrypt a password, and store it into my database. When a user tries to login, I'll take out the password from the database and decrypt it to check against what the user type. First of all is this actually protecting the password?.. Even if someone can access the database they will only see the encrypted password they can't work out what the actual password is right?

 

Secondly.. I have to store the encrypted password in the database, and I'm wondering what kind of variable should I make the password column. Can I stick to varchar and make it say 50 characters long or should I set it as text? Is the length of the encrypted word a function of the length of the original word?

 

Thanks~!

Link to comment
https://forums.phpfreaks.com/topic/65229-mcrypt/#findComment-326250
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.