vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Passwords, md5s, salts (https://vborg.vbsupport.ru/showthread.php?t=91393)

orban 06-30-2005 03:26 PM

Passwords, md5s, salts
 
Hi there

I have set up two users with the same password.

Then I compare the two users in MySQL with
[...] md5(CONCAT(password, salt)) [...] FROM user [...]

The two strings are NOT the same. I don't get it, I really don't understand it. The JavaScript function somehow returns another value than PHP's md5().

In functions_login.php: verify_authentication(): $md5password is NOT md5($password). This is driving me crazy.

-orban

Andreas 06-30-2005 03:34 PM

The salt is different for each User
The value stored in the Database in Colum password of Table user is md5(md5('PlaintextPassword'), salt) - so this will be different for each user, even if they have the same Password (that's the sense of the Salt).

The value transmitted by the Client (generated with JS) is md5('PlaintextPassword')

orban 06-30-2005 03:49 PM

Ahhhhhhhhhhhhhhhhhhhhhhhhhrg. I thought the field password stored md5($plaintext) and not md5(md5($plaintext).salt). Sorry. :redface:

So there is no method to check if two passwords because the salt was added for exactly that reason. :D

-orban

Andreas 06-30-2005 03:51 PM

Yep.

jugo 06-30-2005 04:23 PM

Trying to hack vb??? LOL...j/k.

I heard some kid in china developed an MD5 Decryption tool....

orban 06-30-2005 04:34 PM

*g* No.

THere was a script from vB 2 that selected users that have same password to detect double accounts...and I tried to make it work :P

-orban


All times are GMT. The time now is 04:48 PM.

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.00990 seconds
  • Memory Usage 1,709KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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