# go验证码合集包 **Repository Path**: shirdonl/captchas_with_go ## Basic Information - **Project Name**: go验证码合集包 - **Description**: go语言验证码合集包,支持中英文复杂验证码,自定义字体!快速构建,免费开源啦,欢迎star,fork~ - **Primary Language**: Go - **License**: MIT - **Default Branch**: master - **Homepage**: https://gitee.com/shirdonl/captchas_with_go - **GVP Project**: No ## Statistics - **Stars**: 133 - **Forks**: 45 - **Created**: 2019-07-07 - **Last Updated**: 2025-03-26 ## Categories & Tags **Categories**: utils **Tags**: 验证码, go验证码, Go语言, go工具, GO库 ## README ## tips:作者新书《零基础Go语言算法实战》出版了,欢迎京东当当购买! #### 免费开源代码库:https://gitee.com/shirdonl/goAlgorithms #### (当当(🔥🔥🔥🔥🔥🔥 活动抢购中):https://product.dangdang.com/11726270217.html #### (京东(🔥🔥🔥🔥🔥🔥 活动抢购中):https://item.jd.com/14101229.html # tips:作者《Go Web编程实战派》出版了,欢迎京东当当购买! #### (京东(🔥🔥🔥🔥🔥🔥活动抢购中......):https://item.jd.com/13200972.html #### (当当(🔥🔥🔥🔥🔥🔥活动抢购中......):http://product.dangdang.com/29225055.html # tips:作者《Go语言高级开发与实战》出版了,欢迎京东当当购买! #### 当当(🔥🔥🔥🔥🔥🔥 活动抢购中......):http://product.dangdang.com/29359572.html #### 京东(🔥🔥🔥🔥🔥🔥 活动抢购中......):https://item.jd.com/13594166.html # captchas_with_go 关于go语言验证码,网上都资料很少,特别是支持中文验证码的更少,所以自己抽空了封装一下,免费分享给大家,希望能给大家提供思路和方法~ ![img](bin/00001.png) ![img](bin/0002.png) ![img](bin/00003.png) ![img](bin/0005.png) ![img](bin/00006.png) Feature 特色:支持中文验证,字体可选!! ------- * 支持中文验证码 * 支持自定义词库、字库 * 支持自定义滤镜机制,通过滤镜来增加干扰,加大识别难度 * 当前的滤镜包括: * 支持干扰点 * 支持干扰线 * 支持其他模式的干扰 * 更多模式,可实现imagefilter接口来扩展 * 支持自定义存储引擎,存储引擎可扩展 * 目前支持的存储引擎包括: * 内置(buildin) * memcache * redis (from https://gitee.com/shirdonl/captchas_with_go) * 如需扩展存储引擎,可实现StoreInterface接口 Useage ------ **安装** go get gitee.com/shirdonl/captchas_with_go **Quick Start** 参考 [captcha_test.go](captcha_test.go) 参考 [examples/main.go](examples/main.go) **文档地址** [[captcha.go Wiki](https://github.com/shirdonl/captchas_with_go/wiki)] LICENCE ------- captchas_with_go[[GPL v3](https://opensource.org/licenses/GPL-3.0)]