Java 验证码 Cage

Apache
Java
跨平台
2014-04-15
红薯

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>
加载中

评论(0)

暂无评论

暂无资讯

暂无问答

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...

2016/10/30 09:59
2
0
cage 验证码的使用

cage 验证码的使用

2015/08/28 15:57
92
0
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...

2011/03/11 12:13
78
0
How to grow continue?

I think this is often a problem for many programmers.Recently I always feel I have been in a cage,can not go outside.Maybe I need to take a break and have a good rest,but I also...

2013/04/03 17:41
4
0
GIMP 2.8 发布

GIMP 2.8发布。新版本最大的特性,是自我有印象起许许多多人都提出过需求的:单窗口模式。你不再受制于停靠窗口(Palette)或对话框(当然除非你选择这么做)。这是开发组一项了不起的工作!...

2012/05/04 08:36
33
0
教你zbrush模型编辑工具的使用方法

模型在制作过程中需要进行编辑,这时候编辑工具就必须要用到了,今天小编就来带大家了解zbrush模型编辑工具。

2015/09/24 10:09
54
0
A Practical Tutorial Of Zend Framework(四)

Zend_InputFilter The last component this tutorial covers is Zend_InputFilter. This class provides a simple but rigid approach to input filtering. You instantiate it by passing a...

2016/06/20 19:13
2
0
推荐:制作地图的网站和工具

推荐:制作地图的网站和工具 RECOMMENDED SITES AND TOOLS FOR MAPPING AJD GEOSPATIAL CONCEPTS http://gisconsultingservices.com/ AJD Geospatial Concepts specializes in the organizat...

2016/10/31 13:31
32
0
操作系统经典的同步问题,面试宝典,

操作系统经典的同步问题,面试宝典,里面有4*100米接力问题,售票员司机问题的同步等

2013/10/23 21:13
163
0
allen iverson shoes sale in a professional

Very small scale.0% while Apple's tumbled to 19.Make sure the cage is set up and ready before you bring your bird home.An vehicle level of quality artwork progression was adopte...

2014/05/06 14:31
7
0

没有更多内容

加载失败,请刷新页面

返回顶部
顶部