All Projects → vincenting → Captcha

vincenting / Captcha

Captcha image generator server in Go

Programming Languages

go
31211 projects - #10 most used programming language
golang
3204 projects

Labels

Projects that are alternatives of or similar to Captcha

Tensorflow Demos
all kinds of demos of tensorflow code
Stars: ✭ 89 (-41.45%)
Mutual labels:  captcha
Captcha
基于CNN的验证码整体识别
Stars: ✭ 125 (-17.76%)
Mutual labels:  captcha
Python Anticaptcha
Client library for solve captchas with Anticaptcha.com support.
Stars: ✭ 137 (-9.87%)
Mutual labels:  captcha
Captcha
PHP Captcha library
Stars: ✭ 1,382 (+809.21%)
Mutual labels:  captcha
No Captcha
No CAPTCHA reCAPTCHA For Laravel.
Stars: ✭ 1,484 (+876.32%)
Mutual labels:  captcha
Crack captcha
破解英文数字验证码
Stars: ✭ 131 (-13.82%)
Mutual labels:  captcha
Slidercaptcha
Slider captcha support mobile
Stars: ✭ 88 (-42.11%)
Mutual labels:  captcha
Recaptcha
ReCaptcha helpers for ruby apps
Stars: ✭ 1,819 (+1096.71%)
Mutual labels:  captcha
Ngx Captcha
ReCaptcha components for Angular. Live preview:
Stars: ✭ 115 (-24.34%)
Mutual labels:  captcha
Friendly Pow
The PoW challenge library used by Friendly Captcha
Stars: ✭ 136 (-10.53%)
Mutual labels:  captcha
Recaptcha Spring Boot Starter
Spring Boot starter for Google's reCAPTCHA
Stars: ✭ 103 (-32.24%)
Mutual labels:  captcha
Express Recaptcha
Implementation of google recaptcha v2 & V3 solutions for express.js
Stars: ✭ 104 (-31.58%)
Mutual labels:  captcha
Incapsula Cracker Py3
Python3 compatible way to bypass sites guarded with Incapsula
Stars: ✭ 132 (-13.16%)
Mutual labels:  captcha
Captcha
Go package captcha implements generation and verification of image and audio CAPTCHAs.
Stars: ✭ 1,321 (+769.08%)
Mutual labels:  captcha
Sinesp
🚘 API em PHP para consultar informações de veículos na base de dados do SINESP Cidadão
Stars: ✭ 137 (-9.87%)
Mutual labels:  captcha
12306 captcha
基于深度学习识别12306验证码
Stars: ✭ 89 (-41.45%)
Mutual labels:  captcha
Node Captcha
Simple captcha for Node.JS and Express.
Stars: ✭ 130 (-14.47%)
Mutual labels:  captcha
Captcha solver
Universal python API to captcha solving services
Stars: ✭ 152 (+0%)
Mutual labels:  captcha
Recaptcha Module
🤖 Simple and easy Google reCAPTCHA integration with Nuxt.js
Stars: ✭ 143 (-5.92%)
Mutual labels:  captcha
Captcha reader
🐝 PHP 验证码识别与训练 脚手架
Stars: ✭ 132 (-13.16%)
Mutual labels:  captcha

验证码服务

目前在 mac centos6.x ubuntu14 上测试通过

demo.gif


准备工作

依赖安装: golang imagemagic

验证成功:

pkg-config --cflags --libs MagickWand

go version

没有报错说明安装成功

下载并编译

git clone https://github.com/jianxinio/captcha/

或者 下载 并解压

进入captcha文件夹后运行 source install.sh

Downloading necessary files 这步可能耗时很久,后面留意观察错误,如果下载完后持续报错可能是 imagemagic 安装有误

如果一切顺利,可以看到多了一个 build 文件夹,其中

  1. bin 为可执行文件夹
  2. assets 为使用到的静态资源文件夹
  3. tmp 为缓存验证码文件

除了 build 文件夹外,其他文件不会再被使用

启动

进入到 bin 文件夹,./captcha 即可启动。

见到 Init success. 的提示说明初始化缓存生成成功。此时可以在 tmp 文件夹中看到 100 张验证码。

线上环境请自备守护进程

程序集成

访问 localhost:8001 即可见到验证码内容(格式为 base64(buffer)|result)。

使用时需要先 split('|') 然后将 base64 解密后给前端。

get '/captcha' do
  captcha = Faraday.get settings.captcha_server
  captcha_arr = captcha.body.split('|')
  @session['captcha_result'] = captcha_arr[1]
  content_type 'image/gif'
  Base64.decode64 captcha.body.split('|')[0]
end

高级配置

BriefDesign 中有详细的设计文档。

config.json 说明:

initial_count 初始化时产生的验证码数量
check_interval 检查使用量间隔
threshold 更新验证码阀值
update_count 更新的验证码数量

如果访问量较大,建议提高 initial_count 以及 update_count

更新配置文件后 reload 操作:

reload 只支持 initial_count 以及 update_count 的修改

操作方法: kill -USR2 pid

开源协议

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].