{"repo":"mojocn/base64Captcha","free":true,"listed":false,"github":"https://github.com/mojocn/base64Captcha","clone":"git clone https://github.com/mojocn/base64Captcha.git","description":"captcha of base64 image string","language":"Go","stars":2368,"topics":["captcha","image-captcha","audio-captchas","captcha-generator","anti-spam","golang","base64","arithmetic-captcha","yanzhengma","go"],"license":null,"category":"networking-infra","readme_excerpt":"A flexible and various captcha package Base64captcha supports any unicode character and can easily be customized to support Math Chinese Korean Japanese Russian Arabic etc. 1. 📖📖📖 Doc & Demo English 中文文档 Playground 2. 🚀🚀🚀 Quick start 2.1 🎬🎬🎬 Use history version Tag v1.2.2 go get github.com/mojocn/base64Captcha@v1.2.2 or edit your go.mod file to github.com/mojocn/base64Captcha@v1.2.2 2.2 📥📥📥 Download package go get -u github.com/mojocn/base64Captcha For Gopher from mainland China without VPN go get golang.org/x/image failure solution: - go version 1.11 - set env GOPROXY=https://goproxy.io 2.3 🏂🏂🏂 How to code with base64Captcha 2.3.1 🏇🏇🏇 Implement Store interface or use build-in memory store - Build-in Memory Store 2.3.2 🏄🏄🏄 Implement Driver interface or use one of build-in drivers There are some build-in drivers: 1. Build-in Driver Digit 2. Build-in Driver String 3. Build-in Driver Math 4. Build-in Driver Chinese 2.3.3 🚴🚴🚴 ‍Core code captcha.go captcha.go is the entry of base64Captcha which is quite simple. 2.3.4 🚵🚵🚵 ‍Generate Base64(image/audio) string 2.3.5 🤸🤸🤸 Verify Answer 2.3.6 🏃🏃🏃 ‍Full Example 2.3.7 Example Use Etcd as store captcha with etcd database as store 3. 🎨🎨🎨 Customization You can customize your captcha display image by implementing interface driver and interface item. There are some example for your reference. 1. DriverMath 2. DriverChinese 3. ItemChar You can even design the captcha struct to whatever you prefer. 4. 💖💖💖 T","default_branch":null,"files":null,"tree":[],"storefront":"/r/mojocn","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/mojocn/base64Captcha/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}