Skip to content

Latest commit

 

History

History
73 lines (54 loc) · 1.9 KB

README.md

File metadata and controls

73 lines (54 loc) · 1.9 KB

Blade-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:

验证码    验证码    验证码
验证码    验证码    验证码

Numeric

验证码    验证码    验证码

Chinese

验证码    验证码    验证码

Built-in fonts

验证码    验证码    验证码

Steps to Integrate

  • Add following dependency in your pom.xml
<dependency>
    <groupId>com.hellokaton</groupId>
    <artifactId>blade-captcha</artifactId>
    <version>0.1.0</version>
</dependency>
  • Add following dependency in your code
@GET("/captcha")
public void captcha() throws IOException {
    GifCaptcha captcha = new GifCaptcha(130, 48, 6);
    System.out.println(captcha.text());
    CaptchaKit.render(captcha);
}

Special thanks