vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Password Encryption (https://vborg.vbsupport.ru/showthread.php?t=175366)

JacBowen 04-06-2008 09:49 PM

Password Encryption
 
Ok, I have searched the forums there has been topics... but none of them helpfull.

I have a CMS and at the moment it runs off a seperate database to vBulletin.
What I am trying to do is use my vBulletin user Database so users can use the CMS without having to register all over again.

So say I post up something on the main page, the user can use his vBulletin account to comment the story I put on the main page.

Now I need to know how to remove encryption from passwords, yes this could decrease security... but my CMS isn't encrypted so it's the same basically.

If I somehow remove encryption then I could just connect easily.

I'm not the best coder in the world so I use Dreamweavers Developer Toolbox, now this basically means you click a few boxes and you have a CMS ;), so try not to confuse me too much ? :D.

Thanks alot,
Jac

Dismounted 04-07-2008 04:05 AM

You CAN'T reverse the encryption. It's a hash, one-way only. That's the beauty of it. You can work around this by converting your CMS password style to match vBulletin's, since you say you store them plaintext (bad!), they can be converted easily.

JacBowen 04-07-2008 08:27 AM

Thanks for your reply. But how would I go about creating it as hash? There is a option in the developer toolbox to encrpy it via MD5. But will this use it's own encryption method?

Dismounted 04-07-2008 10:07 AM

You need to encrypt passwords like so:
PHP Code:

md5(md5($password) . $salt); 

Where $password is the plaintext password and $salt is a random 3 character string, and is stored in the `salt` field in the user table.


All times are GMT. The time now is 06:09 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.01987 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)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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