File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Generating captcha (alpha numeric) in java

 
Vinod Vinu
Ranch Hand
Posts: 217
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
fred rosenberger
lowercase baba
Bartender
Pie
Posts: 12015
24
Chrome Java Linux
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
just generate a random number from 1-36, and map them to A-Z plus 0-9.
 
Campbell Ritchie
Sheriff
Pie
Posts: 47228
52
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Adding random affine transforms, changes of font, etc, will help.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic