vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   registering users diffrently, have one problem tho. (https://vborg.vbsupport.ru/showthread.php?t=50380)

chris__L 03-18-2003 07:09 AM

registering users diffrently, have one problem tho.
 
Currently I've built an entirely new page to register uses with. This was done because of alot of things that i had changed to format to the site I'm building. Currently I have it where it enters in all nessesary data correctly. Except one thing, the password, I have no idea how I'm suppose to encrypt the passwords that are entered into the database. From what I've read searching these forums, is that VB uses some type of MD5 encryption or something to encrypt the passwords before they are entered into the database. I'm not sure what i have to include or do to encrypt these passwords so that i may enter them into the database correctly. How would i encrypt these passwords so that i may add them to the database, so that VB reads them correctly and logins are seen and used correctly?

Syberius 03-19-2003 11:16 PM

Well,

the php function to encrypt a string to md5 is surprisingly md5($string);

From what I know vbb, does this to store the password for mysql (since mysql has md5() built in:

INSERT INTO user (password) VALUES ('md5($password)');

that is only an exmaple but that is the basic idea. Look at the user comments for md5 at http://php.net/md5

If you need more help, PM me,

Syberius,


All times are GMT. The time now is 03:21 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.02291 seconds
  • Memory Usage 1,707KB
  • 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