I am creating user with web service in joomla. this is my password encryption code
$password= $_GET["password"];
$salt = JUserHelper::genRandomPassword(32);
$crypt = JUserHelper::getCryptedPassword($password);
$password = $crypt . ':' . $salt;
but if i am trying to login in website with this password. Password not match with database. I am using joomla version 1.5 Please give any suggestion