When the user register on the site , and I look in the database joomla_users in the password table, there are password stored in the following formats:
$P$D
With David Fritsch answer I get to do a encrypted password as Joomla does:
initialise(); jimport('joomla.user.helper'); $password = "test"; echo "Password: " . JUserHelper::hashPassword($password); ?>
Note that you have to store the file in joomla root directory, or change JPATH_BASE.