Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aventer-ug/go-captcha
Captcha server written in golang
https://github.com/aventer-ug/go-captcha
captcha golang
Last synced: 24 days ago
JSON representation
Captcha server written in golang
- Host: GitHub
- URL: https://github.com/aventer-ug/go-captcha
- Owner: AVENTER-UG
- License: gpl-3.0
- Created: 2022-02-08T09:23:31.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2022-02-08T09:33:41.000Z (almost 3 years ago)
- Last Synced: 2024-06-21T21:44:23.631Z (7 months ago)
- Topics: captcha, golang
- Language: Go
- Homepage:
- Size: 194 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Go-Captcha API
Server to generate and check captcha
This Captcha Generation is using "Inter Font© SIL OpenFontLicense 1.1"
## Requirements
- Redis Server
## How to Use
As example, you can start the go-captcha API like that:
```bash
export API_PORT=10888
export API_BIND=0.0.0.0
export LOGLEVEL=debug
export REDIS_SERVER=localhost:6379go run init.go app.go
```If you want to generate a captcha:
```bash
curl -X GET localhost:10888/api/captcha/v0
```It will give you as result a PNG File and in the HTTP Response Header a "sessiontoken". This token you have to add to your CaptchaCheck Request:
```bash
curl -H 'sessiontoken: ' -X POST localhost:10888/api/captcha/v0/
```Thats it! Pretty easy.