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
You should install the PHP mcrypt module;
sudo apt-get install php5-mcrypt sudo php5enmod mcrypt
And normally you will be good ;)