I am creating a new login form, different from the default login, but when i try to connect to the database. it said password is not correct.. I just realised that password is encrypted. but i dont know what kind of algorithm it uses.
I am using joomla and also use joomla default user's table for the password. I checked on the file and found that it use algorithm like this :
$crypt = JUserHelper::getCryptedPassword($array['password'], $salt); $array['password'] = $crypt.':'.$salt;
Anyone know what is the syntax for this algorithm? I tried using this but its not working :
$pass = (md5($_POST['password']).":".$salt);
Please help for the right syntax....