Cage 正在参加 2020 年度 OSC 中国开源项目评选,请投票支持!
Cage 在 2020 年度 OSC 中国开源项目评选 中已获得 {{ projectVoteCount }} 票,请投票支持!
投票让它出道
已投票
Cage 获得 2020 年度 OSC 中国开源项目评选「最佳人气项目」 !
Cage 获得 2020 年度 OSC 中国开源项目评选「最佳人气项目」「最积极运营项目」 !
Cage 获得 2020 年度 OSC 中国开源项目评选「最积极运营项目」 !

软件简介

Cage 是一个 Java 实现的验证码图片生成库,快速、小型和简单。

zugelazumug3Aykun

示例代码:

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>
展开阅读全文

代码

的 Gitee 指数为
超过 的项目

评论 (0)

加载中
更多评论
暂无内容
2015/08/28 15:57

cage 验证码的使用

http://akiraly.github.io/cage/quickstart.html If you use maven add this to your pom: <dependency> <groupId>com.github.cage</groupId> <artifactId>cage</artifactId> <version>1.0</version> </dependency> If you are not using maven, you have to download the jar manually from the repository and add it to your application's classpath. Now you can generate captcha images. In this example we will ...

0
1
发表于AI & 大数据专区
2019/12/30 08:48

Confluence插件开发配置文件标签说明

序号 标签 样例 说明 1 plugin-info <plugin-info> <description>description</description> <version>3.1.1</version> <vendor name="InTENSO" url="http://www.intenso.pl/"/> <param name="plugin-icon">img/plugins/lc_v6_144.png</param> <param name="plugin-logo">img/plugins/lc_v6_144.png</param> <param name="vendor-icon">img/plugins/intenso16x16.png</param> <param name="vendor-logo">img/plugins/intenso72...

0
0
发表了博客
2016/10/30 09:59

Codevs 1267老鼠的旅行

题目描述 Description You are a mouse that lives in a cage in a large laboratory. 你是一只生活在笼子里的实验室老鼠。 The laboratory is composed of one rectangular grid of square cages, with a total of R rows and C columns of cages (1 ≤ R,C ≤ 25). 实验室是一个R行C列的格子矩阵(1 ≤ R,C ≤ 25). 每个格子是一个笼子. (尼玛还要我活么……) To get your exercise, the laboratory owners allow you to move...

0
0
发表了博客
2019/02/25 11:15

codeforces #541 F Asya And Kittens(并查集+输出路径)

F. Asya And Kittens Asya loves animals very much. Recently, she purchased nn kittens, enumerated them from 11 and nn and then put them into the cage. The cage consists of one row of nn cells, enumerated with integers from 11 to nn from left to right. Adjacent cells had a partially transparent partition wall between them, hence there were n−1n−1 partitions originally. Initially, each cell con...

0
0
发表了博客
2019/02/24 09:14

F. Asya And Kittens并查集

F. Asya And Kittens time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Asya loves animals very much. Recently, she purchased nn kittens, enumerated them from 11 and nn and then put them into the cage. The cage consists of one row of nn cells, enumerated with integers from 11 to nn from left to right. Adjacent cells had a partially trans...

0
0
发表了博客
2019/02/24 15:50

Codeforces 1131 F. Asya And Kittens-双向链表(模拟或者STL list)+并查集(或者STL list的splice()函数)-对不起,我太菜了。。。 (Co...

F. Asya And Kittens time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Asya loves animals very much. Recently, she purchased nn kittens, enumerated them from 11 and nn and then put them into the cage. The cage consists of one row of nn cells, enumerated with integers from 11 to nn from left to right. Adjacent cells had a partially trans...

0
0
发表了博客
2011/03/11 12:13

The Move To Linux - Encrypted Disk Issues

One of the standards that has become normal in the US federal sector is the requirement that all mobile devices, such as laptops, have encrypted drives. This was a direct result of a number of laptop thefts earlier in the decade that resulted in the supposed leaking of personal information. As a former federal contractor, I watched a number of successful and not so successful methodologies impl...

0
1
没有更多内容
加载失败,请刷新页面
点击加载更多
加载中
下一页
暂无内容
0 评论
34 收藏
分享
OSCHINA
登录后可查看更多优质内容
返回顶部
顶部