Skip to content

Latest commit

 

History

History
32 lines (24 loc) · 744 Bytes

README.md

File metadata and controls

32 lines (24 loc) · 744 Bytes

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

Web Mode:

OutputStream os = request.getOutputStream();
String code = Generate.obtainWebImage(160, 70, 45, 45, 6, 6, os, "png");

File Mode:

String filePath = "D:\\codeImage.png";
String code = Generate.obtainImageFile(160, 70, 45, 45, 6, 6, filePath, "png");

it generate picture like this:
sample

Apache Maven

<dependency>
  <groupId>cn.jetclouds</groupId>
  <artifactId>aclibrary</artifactId>
  <version>1.0.0</version>
</dependency>