The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
vBulletin encrypted passwords
How does php encrypt the passwords? For instance, on a site I am building I use sha1() to encrypt the passwords.
|
#2
|
|||
|
|||
vBulletin uses md5() to encrypt the passwords.
|
#3
|
|||
|
|||
So if instead on my register script, I use md5() to encrypt users passwords, a user who registers using my script will be able to login to my vbulletin forum using the same username and password?
|
#4
|
||||
|
||||
No, it doesn't just hash the password, there is a random "salt" used as well.
|
#5
|
|||
|
|||
Okay.. well, I have a site that already has a member system and my objective is to make it so users need not to register two accounts and login twice. If I change my encryption to md5(), what else do I need to do? I am not familiar with salt.
|
#6
|
||||
|
||||
This is how vBulletin encrypts passwords:
String (eg. test) MD5 The String (098f6bcd4621d373cade4e832627b4f6) Add Salt to End of the Hash (If salt is 1234 then the result would be 098f6bcd4621d373cade4e832627b4f61234) MD5 The String w/ Hash (260cac331a7b9d4416cd11146d39b33d) That's how I remember it, feel free to correct me. The salt is a random string determined at registration. It is located in the table "user" in a field called "salt". |
#7
|
|||
|
|||
vBulletin does not encrypt passwords!
Encryption is the process of storing the orginal data in such a way that a cypher can later decrypt the information so it can be used in it's orignal form. Encryption is something that you would only use in a case where you needed to share certain information with a group of people without having that information getting to people outside of that group. What vBulletin uses for passwords is called a hash function, which is nothing like encryption. You can not get the orginal data from something that was ran through a hash function. Instead you take new input from the user (the password) and run it through the hash function, then you attempt to match the output from the new user input with older user input that is stored in another location. If both hashes match then the user has provided the correct input and will be allowed to log-in, if not the input he provided is wrong and you deny his log-in. You see encryption is rather useless when it comes to passwords because the user should already know his password. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|