vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   VB Passwords with other programs (https://vborg.vbsupport.ru/showthread.php?t=293437)

Hiatus- 12-31-2012 05:41 AM

VB Passwords with other programs
 
Hello, I am currently coding a program and I want my website users to be able to use their forums information to log into the program. The problem I ran into was with the passwords. How would I correctly pull the passwords from the vb database to use in my program (the hash is what makes it difficult). Also I am programming in c#. Any help would be very appreciated.

Thanks.

Carnage 12-31-2012 09:28 AM

you might find yourself better off using the mobile api

kh99 12-31-2012 01:11 PM

In case it helps, what's stored in the vb user table password field is md5(md5(password) . salt)), where 'password' is the user's password and 'salt' is the value from the 'salt' field from the user table.

Hiatus- 12-31-2012 02:17 PM

Quote:

Originally Posted by Carnage (Post 2393757)
you might find yourself better off using the mobile api

what exactly do you mean by this?

--------------- Added [DATE]1356977681[/DATE] at [TIME]1356977681[/TIME] ---------------

Also, I got it working with the algorithm that kh posted. Thank you for the help

Carnage 01-01-2013 11:09 AM

Quote:

Originally Posted by Hiatus- (Post 2393802)
what exactly do you mean by this?

--------------- Added [DATE]1356977681[/DATE] at [TIME]1356977681[/TIME] ---------------

Also, I got it working with the algorithm that kh posted. Thank you for the help

Well, the C# program you are writing is external to the forums, ideally you wouldn't give it direct access to your vbulletin database. If you use the API that the mobile apps use you will have a more secure way to authenticate a user against your forum's database.

If you intend to distribute the program to anyone if it has direct access to the database, it will present a massive security issue. (Somewhere the program will need your database credentials, allowing a malicious user to obtain them from it)


All times are GMT. The time now is 11:39 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.00988 seconds
  • Memory Usage 1,717KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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