https://github.com/bugfan/captcha
golang 人机验证插件 [点选验证,滑动验证] 加密传输 验证库
https://github.com/bugfan/captcha
Last synced: 4 months ago
JSON representation
golang 人机验证插件 [点选验证,滑动验证] 加密传输 验证库
- Host: GitHub
- URL: https://github.com/bugfan/captcha
- Owner: bugfan
- Created: 2021-01-09T13:33:31.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2022-02-16T06:16:17.000Z (over 4 years ago)
- Last Synced: 2025-11-22T17:03:37.731Z (6 months ago)
- Language: JavaScript
- Homepage:
- Size: 251 KB
- Stars: 4
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## golang 人机验证插件 [点选验证,滑动验证] 加密传输 验证库
## 使用方法
- 当作插件(库)使用
```
// get it
go get -u github.com/bugfan/captcha
// import it
import(
"github.com/bugfan/captcha"
)
// run it,then you can use at your logic
go func(){
err:=captcha.Start(":9997")
log.Fatal(err)
}()
// open it on browser
'http://127.0.0.1:9997/static/position.html'
or
'http://127.0.0.1:9997/static/slide.html'
```
- 简易模式使用
```
// run test
cd captcha
go test
// open it on browser
'http://127.0.0.1:9997/static/position.html'
or
'http://127.0.0.1:9997/static/slide.html'
```
## 效果
- 滑动

- 点选

### 需要不同的页面显示效果,去‘web’目录下修改对应的js,html等文件代码即可