The actual structure of the password hash

 
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions
View previous topic :: View next topic  
Author Message
Who
-


Joined: 24 Jan 2005
Posts: 4

PostPosted: Fri Feb 04, 2005 10:20 pm    Post subject: The actual structure of the password hash Reply with quote

I am developing a script to automaticly edit the .conf file to add in users when registred from a php page, now im down to the actual structure of how the password is made up of, somone said it was "username:password" tried that, not it, tried it without the ":"
so far i got something like this
Code:
$usercode = $uname.":".$pass;
$code = md5($usercode);
$fuser = "User ".$uname." ".$code;


can anyone point out whats not happening correctly?
Back to top View user's profile Send private message
admin
Site Admin


Joined: 03 Mar 2002
Posts: 1334

PostPosted: Sat Feb 05, 2005 12:36 pm    Post subject: Re: The actual structure of the password hash Reply with quote

$code should be computed as follows:

Code:

$code = md5(base64_encode($usercode));


For another example, read http://www.aprelium.com/forum/viewtopic.php?t=3105 .
Back to top View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group