Let me show you how you can create joomla password function

Here is the exmaple how you can create joomla 1.5.x password function.

function FnGenerateNewPassword($Password)
{
jimport(‘joomla.user.helper’);

$salt        = JUserHelper::genRandomPassword(32);
$crypt        = JUserHelper::getCryptedPassword($Password, $salt);
$password    = $crypt.’:’.$salt;
return  $password;

}

Hope this will help you in some program. 🙂

4 thoughts on “Create New joomla password function”

  1. I have come across several hash plus salt generators for joomla passwords on the Internet and the one thing that is not too good, is that for the same text password [mypass]it is not likely that the same password will be generated with the various generators although they, the authors say “this is how joomla generates its passwords”. Care to comment? I’m looking for answers to settle my question about the useability of these various generators.

    I will generate a password using the password in text [this is my text password], with joe blows generator and stick the generated password into my jos_users table for Administrator. No matching occurs, and this is the same with each of the generators tried.

  2. I have been browsing on-line more than three hours today, but I never found any interesting article like yours. It is pretty worth sufficient for me. Personally, if all site owners and bloggers made just right content material as you probably did, the net shall be a lot more helpful than ever before.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.