Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Password Generation

 
Pol Appan
Ranch Hand
Posts: 144
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I have a user information creation form in JSP. After the user succesfully creates his account an email will be send to him with a password.

What is the best way of generating an alphanumeric password?

Any help is highly appreciated.

Thanks.

Ponic
 
Jeff Albertson
Ranch Hand
Posts: 1780
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
Pol Appan
Ranch Hand
Posts: 144
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot and much appreciated.
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A user-friendly technique is to find a large spelling dictionary somewhere on the web with thousands of words. Then pick two or three at random to make a password. I can still remember my CompuServe password from the early 80's: "WATER BOLDLY." I'd never remember QR1bA39u.

Still I have a routine to do just what was shown above. It accepts an argument with the valid characters, eg "BCDFGHJKLMPQRSTVWXYZ0123456789". Note I left out the vowels to avoid randomly generating some insult to the user's parentage though users from Qwhlgm are still at risk. You might also leave out 1 and 0 to avoid confusion with I and O.
[ September 23, 2005: Message edited by: Stan James ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic