General Programming Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingGeneral Programming Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old November 4th, 2002, 02:11 PM
Lindset Lindset is offline
weirdomoderator
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2002
Location: Alta, Norway
Posts: 370 Lindset User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via ICQ to Lindset Send a message via AIM to Lindset
Quick Example: How to make spellable passwords

Here's a quick example on how you can make passwords that are capable of being spelt..

PHP Code:
<?php

// create the word array
$words = array("ba""be""bi""bo""bu""by""da",
"de""di","do""du""dy""fa""fe""fi""fo""fu",
"fy""ga""ge""gi""go""gu""gy""ha""he""hi",
"ho""hu""hy""ja""je""jo""ju""ka""ke""ki",
"ko""ku""ky""la""le""li""lo""lu""ly""ma",
"me""mi""mo""mu""my""na""ne""ni""no""nu",
"ny""pa""pe""pi""po""pu""py""ra""re""ri",
"ro""ru""ry""sa""se""si""so""su""sy""ta",
"te""ti""to""tu""ty""va""ve""vi""vo""vu",
"vy""za""ze""zi""zo""zu""zy");

// seed the random number generator
mt_srand((double)microtime() * 1000000);

// loop four times
for ($i 1$i <= 4$i++) {
    
// select a random entry from the array
    
$pass .= $words[array_rand($words1)];
}

// add a random number at the end
$pass .= rand(1099);

echo 
$pass;

?>


To see an example: http://lindset.servehttp.com/passgen.php (may not always be online)

I may be posting more quick examples here if you want me to.. well, do you?
__________________
Best Regards,
Håvard Lindset

Last edited by Lindset : November 4th, 2002 at 03:22 PM.

Reply With Quote
  #2  
Old November 4th, 2002, 06:07 PM
Ben Rowe
Guest
Dev Articles Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
thats really cool,

what i would love to see is a password generator, that uses your name, and breaks it up. and makes a random password out of that, whilst adding some numbers in between the letters??

something like e9b34n32

if you get my point

Reply With Quote
  #3  
Old November 5th, 2002, 04:55 AM
wAr-AnGeL wAr-AnGeL is offline
Forum Security
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: Behind You
Posts: 479 wAr-AnGeL User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 m 50 sec
Reputation Power: 7
Send a message via ICQ to wAr-AnGeL Send a message via AIM to wAr-AnGeL
yeah, that would sound good. maybe do a combo with your name & birthday.

or make it into 1337:

Welcome to the devArticles Forums! Your Username is: wAr-AnGeL and your automatically generated password is: omgwArAnGeLj00oWnrofl.

just a thought
__________________




"Only Linux users see the end of crashes."
- Pl4t0

Reply With Quote
  #4  
Old November 5th, 2002, 05:20 AM
fakker fakker is offline
The calm b4 the storm
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2002
Location: Manchester, UK
Posts: 404 fakker User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via Yahoo to fakker
thats pretty kewl code there lindset!..

It would be good if it would suggest other usernames aswell... you know like when you sign up to Hotmail, and you try to register "matthew@hotmail.com" and it (suprisingly) says.. sorry, that name already exisist... here are some alternatives...

Matthew1234567654322467@hotmail.com

etc etc!!

so it would need to make some suggestions and check them against other usernames to they would be unique!

Sweet!
__________________
Matt 'Fakker' Facer

mattfacer.com

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingGeneral Programming Help > Quick Example: How to make spellable passwords


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT