bigrats / patchca

Simple yet powerful CAPTCHA library written in Java. 原项目地址: http://code.google.com/p/patchca/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Patchca: verification code library for Java

Overview

Simple yet powerful verification code library written in Java with zero dependency.

You can generate verification code picture like this:

ConfigurableCaptchaService cs = new ConfigurableCaptchaService();
cs.setColorFactory(new SingleColorFactory(new Color(25, 60, 170)));
cs.setFilterFactory(new CurvesRippleFilterFactory(cs.getColorFactory()));

FileOutputStream fos = new FileOutputStream("patcha_demo.png");
EncoderHelper.getChallangeAndWriteImage(cs, "png", fos);
fos.close();

it generate picture like this:
sample

About

Simple yet powerful CAPTCHA library written in Java. 原项目地址: http://code.google.com/p/patchca/

License:GNU General Public License v3.0


Languages

Language:Java 100.0%