The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
MD5 and Salt
Is there any way to change the current salt to something different? And if so, how would I go about doing this?
Would I need to change the following in functions_user.php: Code:
// ###################### Start makesalt ####################### // generates a totally random string of $length chars function fetch_user_salt($length = 3) { $salt = ''; for ($i = 0; $i < $length; $i++) { $salt .= chr(rand(32, 126)); } return $salt; } |
#2
|
|||
|
|||
The salt is randomly generated for each user and stored in teh user table. Why you would want to change that?
|
#3
|
||||
|
||||
Well, if you wanted you could change it, if you wanted to change the length, change:
Code:
$length = 3 If you wanted to change the characters contained within the salt, then change this line: Code:
$salt .= chr(rand(32, 126)); - Zero Tolerance |
#4
|
||||
|
||||
I'm not sure if your users wouldn't have to reset their password if you change the salt though...
|
#5
|
||||
|
||||
Quote:
|
#6
|
||||
|
||||
Quote:
If so, and you change the salt of a user, it wouldn't be able to match up the passwords, I'd think. |
#7
|
||||
|
||||
Quote:
- Zero Tolerance |
#8
|
||||
|
||||
Quote:
|
#9
|
||||
|
||||
so everytime a password is reset or changed the salt is changed?
|
#10
|
||||
|
||||
Quote:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|