HighDots Forums  

OT: PHP, MySQL - need dictionary

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss OT: PHP, MySQL - need dictionary in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
arizona
 
Posts: n/a

Default OT: PHP, MySQL - need dictionary - 07-22-2004 , 10:31 AM






Hi, I know this is off topic, but I also know many of you in here may know
where I can find a dictionary to upload to a server (php4 is installed.)

I have used some scripts to create a members login area, when the user
forgets their password, a random word from dictionary (plus some numbers)
are generated and emailed to the user as a new password. Unfortunately, the
server of one site where we are generating a members area does not have a
dictionary installed. Is there a dict.pl or something else out there that I
can install and use?

I tried searching for dict.pl, but realized there may be something else I
should be searching for, so I decided to ask : )


Thanks
Arizona


Reply With Quote
  #2  
Old   
Michael Fesser
 
Posts: n/a

Default Re: OT: PHP, MySQL - need dictionary - 07-22-2004 , 10:46 AM






.oO(arizona)

Quote:
I have used some scripts to create a members login area, when the user
forgets their password, a random word from dictionary (plus some numbers)
are generated and emailed to the user as a new password. [...]
I would rather use a generator script (or the shell command 'pwgen' if
available) to create a completely random password. Some of them create
passwords that are still pronouncaable.

Micha


Reply With Quote
  #3  
Old   
Joaquim Lopes
 
Posts: n/a

Default Re: OT: PHP, MySQL - need dictionary - 07-22-2004 , 11:54 AM



Folowing Michael's suggestion, you could use something like this:

$auto_pw = substr(md5(time() + rand(5, time())), 0, 8);

This will return the first 8 characters of the string returned by md5. This
does not ensure that the password is unique.
As an alternative you can use

$auto_pw = substr(uniqid(''), 5, 13);

Hope this helps.


Reply With Quote
  #4  
Old   
gareth
 
Posts: n/a

Default Re: PHP, MySQL - need dictionary - 07-22-2004 , 12:20 PM



There are a large number of dictionaries online that you can use online,
have a look at hacking / cracking sites where they provide many
dictionaries, usually for password attacks :-)

I don`t like giving users random passwords, as they tend to write them down
etc because they can`t remember them, pronounceable ones are much better,
however, because of dictionary attacks you can`t just use normal words as
there easy to crack.

I find the best solution is to combine two words with some random non
alphabetic character in between eg tree$storm. This increases the length of
the password, and also with the inclusion of the non alphabetic character
makes them much harder and much more work to crack as your increasing the
length and the number of characters that can be used.


--
Gareth
http://www.garethdp.com/
Buzz inet - http://www.buzzinet.co.uk/

Team Macromedia Volunteer for Dreamweaver MX
Dreamweaver MX Support: http://www.dreamweavermxsupport.com/index.php

PHP Login Suite V2 - 34 Server Behaviors to build a complete Login system.
http://www.dreamweavermxsupport.com/extensions/

Co-Author: Dreamweaver MX: Instant Troubleshooter - Apress
Co-Author: Practical Intranet Development - Apress
Co-Author: Dreamweaver MX: Advanced PHP Web Development - Apress
Co-Author: Dreamweaver MX: PHP Web Development - Wrox



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.