An open API service indexing awesome lists of open source software.

https://github.com/lets-blade/blade-captcha

Blade integrated graphic verification code
https://github.com/lets-blade/blade-captcha

Last synced: 4 months ago
JSON representation

Blade integrated graphic verification code

Awesome Lists containing this project

README

          

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

![验证码](https://s2.ax1x.com/2019/08/23/msFrE8.png)
  
![验证码](https://s2.ax1x.com/2019/08/23/msF0DP.png)
  
![验证码](https://s2.ax1x.com/2019/08/23/msFwut.png)


![验证码](https://s2.ax1x.com/2019/08/23/msFzVK.gif)
  
![验证码](https://s2.ax1x.com/2019/08/23/msFvb6.gif)
  
![验证码](https://s2.ax1x.com/2019/08/23/msFXK1.gif)

**Numeric**

![验证码](https://s2.ax1x.com/2019/08/23/mskKPg.png)
  
![验证码](https://s2.ax1x.com/2019/08/23/msknIS.png)
  
![验证码](https://s2.ax1x.com/2019/08/23/mskma8.png)

**Chinese**

![验证码](https://s2.ax1x.com/2019/08/23/mskcdK.png)
  
![验证码](https://s2.ax1x.com/2019/08/23/msk6Z6.png)
  
![验证码](https://s2.ax1x.com/2019/08/23/msksqx.png)

**Built-in fonts**

![验证码](https://s2.ax1x.com/2019/08/23/msAVSJ.png)
  
![验证码](https://s2.ax1x.com/2019/08/23/msAAW4.png)
  
![验证码](https://s2.ax1x.com/2019/08/23/msAkYF.png)

### Steps to Integrate

- Add following dependency in your `pom.xml`

```xml

com.hellokaton
blade-captcha
0.1.0

```

- Add following dependency in your code

```java
@GET("/captcha")
public void captcha() throws IOException {
GifCaptcha captcha = new GifCaptcha(130, 48, 6);
System.out.println(captcha.text());
CaptchaKit.render(captcha);
}
```

# Special thanks

- [EasyCaptcha](https://gitee.com/ele-admin/EasyCaptcha)