Skip to content
forked from penghcn/patchca

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

License

GPL-3.0, LGPL-3.0 licenses found

Licenses found

GPL-3.0
licence-gpl.txt
LGPL-3.0
licence-lgpl.txt
Notifications You must be signed in to change notification settings

poseidoncn/patchca

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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/

Resources

License

GPL-3.0, LGPL-3.0 licenses found

Licenses found

GPL-3.0
licence-gpl.txt
LGPL-3.0
licence-lgpl.txt

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%