[Mediawiki-l] Fwd: encryption of paasword

Jack Eapen C jackec at suntecgroup.com
Mon Jan 14 11:28:03 UTC 2008


How are you planning to add users to MW table? Running SQl querries for
each insertion at SQL prompt? Or using a tool like phpMyAdmin? In that
case you can easily add md5('yourpassword') to your SQl statement to
encrypt the password 

Jack Eapen
"May He protect us both. May He cause us both to enjoy.May we exert
together. May our studies become brilliant. May we not hate each other"

-----Original Message-----
From: mediawiki-l-bounces at lists.wikimedia.org
[mailto:mediawiki-l-bounces at lists.wikimedia.org] On Behalf Of
sharmishtha gupta
Sent: Monday, January 14, 2008 4:50 PM
To: MediaWiki announcements and site admin list
Subject: Re: [Mediawiki-l] Fwd: encryption of paasword


We want to disable Signup for new users in mediawiki and want to add
them into database manually. for this we want to understand the sequence
of function used to store a new user into mediawiki database. we looked

function wfEncryptPassword( $userid, $password ) {
        global $wgPasswordSalt;
        $p = md5( $password);

                return md5( "{$userid}-{$p}" );
                return $p;

But need to know that where $wgPasswordSalt set its value and finally
where this function called to get encryted password.

Can you suggest sequence of storing a new user in mediawiki as this will
be of great help.

Thank you

On 1/14/08, Alexis Moinet <alexis.moinet at fpms.ac.be> wrote:
> sharmishtha gupta wrote :
> > I think i frame my question little bit confusing, let me modifie a 
> > bit I need to know that In what form is the password stored in 
> > MediaWiki, OR, What encryption do we need to use to store a password

> > manually in MW user table?".
> see :
> http://lists.wikimedia.org/mailman/htdig/mediawiki-l/2007-August/02278
> 4.htmland the file includes/GlobalFunctions.php (function 
> wfEncryptPassword(  $userid, $password  ) )
> _______________________________________________
> MediaWiki-l mailing list
> MediaWiki-l at lists.wikimedia.org
> http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list
MediaWiki-l at lists.wikimedia.org

This electronic mail (including any attachment thereto) may be confidential and privileged and is intended only for the individual or entity named above. Any unauthorized use, printing, copying, disclosure or dissemination of this communication may be subject to legal restriction or sanction. Accordingly, if you are not the intended recipient, please notify the sender by replying to this email immediately and delete this email (and any attachment thereto) from your computer system...Thank You

More information about the MediaWiki-l mailing list