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:
Apache Maven
<dependency>
<groupId>cn.jetclouds</groupId>
<artifactId>aclibrary</artifactId>
<version>1.0.0</version>
</dependency>