vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Remove the SALT check from the password hash (https://vborg.vbsupport.ru/showthread.php?t=237372)

DrKNickel 03-03-2010 12:40 PM

Remove the SALT check from the password hash
 
Hello everyone,

i have a really big user database from a selfcoded cms. We would like to integrate Vbulletin and import the users from the cms database to the vbulletin database.

The cms database uses md5 hash to store the passwords.

Vbulletin as far as i understand uses md5 plus the salt method.
$password_hash = md5(md5($password_text) . $user_salt);

A simple import does not work. Is it possible to remove the salt check? Or do you have another idea for a solution for my problem?

Thank you very much for your help,

greets drknickel:)

Dylanblitz 03-04-2010 08:11 AM

Here is how I would do it.

Add your cms user table to the vb database.
Create a script to go through each cms user record and pull the user data into a variable
Generate a random salt, add the salt to the encrypted pass then encrypt it again
Use the function to create a user from the new data
Update the new user record so you can use the salt you created and not the one that auto generates from the user creation.

You wouldn't want to do a straight import anyway, salt or not.


All times are GMT. The time now is 12:55 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.03142 seconds
  • Memory Usage 1,712KB
  • 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
  • (2)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