CAPTCHA Server (Java)

import java.util.*; import java.io.*; import java.net.*; import java.awt.*; import java.awt.image.*; import javax.imageio.*; class TimeOutTask extends TimerTask { boolean isTimedOut = false; public void run() { isTimedOut = true; } } class CaptchaServer { static String captcha; static BufferedImage createCaptcha() { BufferedImage bImg = new BufferedImage(200, 200, BufferedImage.TYPE_INT_RGB); Graphics g = bImg.getGraphics(); Random r = new Random(); captcha = new String(); for(int i=0 ; i<6 ; … Continue reading CAPTCHA Server (Java)