Version: 1.00, by TripLcixx
Developer Last Online: Aug 2004
Version: 3.0.3
Rating:
Released: 07-30-2004
Last Update: Never
Installs: 1
No support by the author.
Since VB3's expire function for passwords, you can now force your members to change password. But very often, people tend to forget their recently changed password.
Also, if you add the "history" option, people will have to come up with a new password everytime and that particular detail is not always appreciated.
One thing to do is random generate a password but you can be sure you users will never remember this one.
So I came up with the idea to random generate an "easy to remember" password.
A while back I read on php.net about a small piece of code that generates a "pronouncable" password which is easier to remember, so I decided to integrate this function into vB.
What the hack does is add a link in the "Change password" page which makes the page auto-generate a "pronounceable" password. Also, it changes the inputfields from passwordfields to regular textfields. In the first passwordfield, the generated password is placed. The second field will still be empty so the user will have to retype the password.
Installation:
Open admincp/functions_user.php and look for:
PHP Code:
return $word;
}
After that, add:
PHP Code:
// ############ Extra function to create random pronouncable password ##########
function createpronouncepass() {
$array = array(
'ap','dus','tin','rog','sti','rev','pik','sty','lev','qot','rel','vid',
'kro','xo','pro','wia','axi','jer','foh','mu','ya','zol','gu','pli','cra',
'den','bi','sat','ry','qui','wip','fla','gro','tav','peh','gil','lot',
'azz','oi','sut','ury','kwi','owp','fli','ws','ava','nou','gae','ing',
'132','you','789','buo','gro','mup','flo','alc','spi','nku','gui','win',
'kal','zan','noc','bat','tev','lun','pal','hom','cun','wos','vox');
$num_letters = 7; //The number of letters
mt_srand((double)microtime()*1000000);
Phrase Type: User tools (global)
Varname: generate_random_password
Text: <a href="profile.php?s={$session['sessionhash']}&do=editpassword&extra=genrandom">Click here to have a random password generated for you.</a>
That's it!
Small note:
A 7 char "pronounceable" password is generated every time. If you want more or less characters, all you have to do is change this value in admincp/functions_user.php:
PHP Code:
$num_letters = 7; //The number of letters
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
The only thing I hesitate to install this hack is the possibility of cracking the passwords. Any chance your hack can prevent the generated passwords from being cracked?
Nothing in a hack can prevent a password cracker from cracking a password - that would be magic, and we don't deal in magic here - tbh 7 characters seems a little low as a default in this situation as the mini-phrases that make up the passwords are a known factor... in this instance I would sughgest users use a default of 15 or 20 characters at least - as it's pronounceable it is less of an issue it being longer...
Any password can be "cracked" if you do a bruteforce check on it and have enough time. The good thing with VB3 is the "scratches" system, which bans ppl for 15mins if they use the wrong password 5 times. This makes any bruteforce attempt a lot harder.
@ Natch: well, your post makes sense, but I somehow believe that a 7 char random generated password is harder to guess than a password made up by a user (as they tend to use real life words, which can easily be cracked with some sort of dictionary search)
Well, you can specify the amount of chars the password has to be so...everybody happy?
All passwords can be cracked, if you have the strikes system you'll be fine with this hack because practicaly all probabilities are in your favour.
If you DO NOT use the strike system, however; because the possible components of passwords have been released to the public, it does indeed become easier to crack. But nothing to worry about, with the strikes system