Java 验证码 Cage
- 授权协议: Apache
- 开发语言: Java
- 操作系统: 跨平台
- 软件首页: http://akiraly.github.io/cage/
- 软件文档: http://akiraly.github.io/cage/quickstart.html
软件介绍
Cage 是一个 Java 实现的验证码图片生成库,快速、小型和简单。
示例代码:
public class QuickStart {
public static void main(String[] args) throws IOException {
Cage cage = new GCage();
OutputStream os = new FileOutputStream("captcha.jpg", false);
try {
cage.draw(cage.getTokenGenerator().next(), os);
} finally {
os.close();
}
}
}
Maven:
<dependency> <groupId>com.github.cage</groupId> <artifactId>cage</artifactId> <version>1.0</version> </dependency>
