vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   [ Help ] The Algorithm used with md5 passwords (https://vborg.vbsupport.ru/showthread.php?t=107467)

RED_LINE 02-08-2006 04:25 PM

[ Help ] The Algorithm used with md5 passwords
 
Hello all,
iam working these days on php web application related to vBulletin , and so I needed to make a memberships system, But I don't want the visitors to register again .. ( I want to use the users registered in my forum )
So, i had some problems with the login system .. vBulletin doesn't use the usual md5 system .. I think it adds somethings to it .. i tried to figure out how it works .. but i couldn't really ..
so, please can anyone tell me how vBulletin trat the password since it's input by the user from the login box .. till it's stored in the database ?
and let's say .. that the user's password is aa .. and he is already typed it in the text-box .. and clicked the login button .. what steps will vBulletin take on the password to store it in the database ?

Thanks,

tehste 02-08-2006 05:13 PM

Quote:

Originally Posted by RED_LINE
Hello all,
iam working these days on php web application related to vBulletin , and so I needed to make a memberships system, But I don't want the visitors to register again .. ( I want to use the users registered in my forum )
So, i had some problems with the login system .. vBulletin doesn't use the usual md5 system .. I think it adds somethings to it .. i tried to figure out how it works .. but i couldn't really ..
so, please can anyone tell me how vBulletin trat the password since it's input by the user from the login box .. till it's stored in the database ?
and let's say .. that the user's password is aa .. and he is already typed it in the text-box .. and clicked the login button .. what steps will vBulletin take on the password to store it in the database ?

Thanks,

no one really knows... It's one of the many great mysteries of vbulletin!

I heard somewhere that it does a bazillion MD5 to uber encrypt a password!

i swear i unticked quote message and it quoted it still :S

Xenon 02-08-2006 05:27 PM

well, it_s not difficutl:

PHP Code:

md5(md5($password) . $vbulletin->userinfo['salt']) 

just look into functions_login.php verify_authentication..

RED_LINE 02-08-2006 05:30 PM

So now way ? :tired:

ok .. just if i can use the vbuelltin functions to make the same steps on the password inputed by the user ..

I don't really care to know how it works .. I just need my script to work well !

Xenon :
Ok .. in fact I looked .. and Tried it

look this my phpmyadmin info :
http://img211.imageshack.us/img211/1975/xx9mi.jpg

my password on localhost is : aa
Iam using it sooo ok and it's aa Iam sure

so I wanted to see if this way iI found in the function would work or not .. :
PHP Code:

echo md5(md5("aaU^8")); 

and resulted :
PHP Code:

a00e63216d20556fcd5ec5ec5cd5d9e3 

as you can see .. it's not the same as the hash in phpmyadmin ..

thanks for trying to help

Xenon 02-08-2006 05:43 PM

of course, as this is the wrong code, it should be:

PHP Code:

echo md5(md5("aa") . "U^8"); 


RED_LINE 02-08-2006 05:48 PM

Oops .. that wored

Thanks You :)

So, just if you have some time there .. what's the difference between what you wrote and what I've wrote .. ?

anyway .. Thanks ^_^

ooh .. I just now observed the difference ..

the salt is taken for the second md5 not the first ..

it's working so well .. thanks again

Xenon 02-08-2006 07:37 PM

you're welcome :)


All times are GMT. The time now is 10:25 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01125 seconds
  • Memory Usage 1,731KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete