File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes Generating captcha (alpha numeric) in java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Generating captcha (alpha numeric) in java" Watch "Generating captcha (alpha numeric) in java" New topic
Author

Generating captcha (alpha numeric) in java

Vinod Vinu
Ranch Hand

Joined: Aug 30, 2009
Posts: 217
Hi, can someone give me any idea of generating randon alphanumeric words in java. I do not want alphanumeric inside an image like usually we see in various web sites.
I just need random alphanumeric series.

thanks


Vinod Kumar Nair
"Any fool can write code that a computer can understan. Good programmers write code that humans can understand."
fred rosenberger
lowercase baba
Bartender

Joined: Oct 02, 2003
Posts: 11152
    
  16

just generate a random number from 1-36, and map them to A-Z plus 0-9.


There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 37907
    
  22
Adding random affine transforms, changes of font, etc, will help.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Generating captcha (alpha numeric) in java
 
Similar Threads
Generate next hexadecimal?
how to generate random unique alphanumeric numbers
alphanumeric validation
Paging from a java application
Password Generation