Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果我理解正确,在用户登录期间,Joomla 会使用盐将输入的明文密码加密为 md5 散列,然后将其与已存储在 db 中的散列进行比较。我只是找不到进行此类比较的 joomla 代码部分。在此先感谢您的时间。
根据此链接,您要查找的内容在libraries/joomla/user/user.php
libraries/joomla/user/user.php
这是代码部分
jimport('joomla.user.helper'); $salt = JUserHelper::genRandomPassword(32); $crypt = JUserHelper::getCryptedPassword($password_choose, $salt); $password = $crypt.':'.$salt;
几乎一样