vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   How 2 encode & display password ? (https://vborg.vbsupport.ru/showthread.php?t=98108)

truongton 10-11-2005 04:23 AM

How 2 encode & display password ?
 
How 2 encode password from data ?
And how 2 display members password in user manager ?

Can u help me answer ?

Darkwaltz4 10-11-2005 05:05 AM

the password is saved as an md5 with salt added to the password.

you cant undo this process, only re-encyrpt when a user submits it, and then compares to the saved version to see if they match. this is a security feature, so that passwords arent sitting around in plaintext should the database get compromised

also, i think this is in the wrong forum

truongton 10-11-2005 05:14 AM

No way huh ?

Darkwaltz4 10-11-2005 05:25 AM

nope. i read somewhere that the only way to unencode such a hash requires a super computer and a very long time. although im not entirely sure if the hash is even representative of the entire string, or if it actually truncates since it is not meant to be translated back anyway. its a long complicated mess, as it is supposed to be

again, a security measure so passwords are possible, yet only the supplier of the password can know what it is. in vbulletin, you can only RESET or CHANGE the password of a user, not look it up and tell them what the old value was.

So no. The 'forgot your password?' feature in vbulletin should suffice well enough should a user forget what their password was; it will give them a new one and email it to them, to log in and switch back if they so please.

Xenon 10-11-2005 10:54 AM

actually the correct answer is:
it is mathematically impossible to get the original password back once it is encrypted.

that's because md5 is a hasfunction (a so called fingerprint) and not a real encryption function.

there can be two different passwords which have the same hash, so as said mathematically impossible to get the original pw back (but it's technically possible to get a pw which will work as the original one, but that's a very complicated process and takes a long time to generate)

Darkwaltz4 10-11-2005 02:38 PM

:-p thats what i always wondered about. if the hash is a 32-char hex number, then there is still a finite (though really large) amount of codes that can be produced, so naturally it has to run out somewhere, if it hasnt already. thus, there has to be multiples at some point, even if they are very very different from each other (say, one string, and an entire program). i guess you just have to limit the amount of acceptable password length and hope theres no two short strings which produce the same thing :-p (hey, even msn does it with THEIR passwords, so we should totally trust them right o.o lol)

truongton 10-13-2005 03:45 AM

now i'm understand ... thanks man !

Evil X 10-13-2005 04:06 AM

sounds like you want to hack your members lol


All times are GMT. The time now is 05:10 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.01064 seconds
  • Memory Usage 1,715KB
  • 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
  • (8)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