Joomla 3.2.1 password encryption

前端 未结 3 1458
北海茫月
北海茫月 2020-11-27 18:35

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

3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-11-27 19:22

    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.

提交回复
热议问题