Metrics
0
Watch 5 Star 12 Fork 3

悦租 / patchcaJava

Sign up for free
Explore and code with more than 2 million developers,Free private repositories !:)
Sign up
Simple yet powerful CAPTCHA library written in Java spread retract

Clone or download
张国军 authored -
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

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

Comments ( 1 )

You need to Sign in for post a comment

Java
1
https://gitee.com/yuezhu365/patchca.git
git@gitee.com:yuezhu365/patchca.git
yuezhu365
patchca
patchca
master

Help Search