I have a login and sign up form and use the encrypt library to encrypt the password.. I am using Xampp for my server and my system works correctly..
code to encrypt
Open your: /etc/php5/apache2/php.ini Example: sudo gedit /etc/php5/apache2/php.ini At line 1728, put this code:
/etc/php5/apache2/php.ini
sudo gedit /etc/php5/apache2/php.ini
extension=mcrypt.so
Then restart your Apache.