Skip to content

wenlng/go-captcha-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go Captcha Example


Go Captcha is a behavior security CAPTCHA, which implements text click verification, slide verification and rotation verification.

⭐️ If it helps you, please give a star.


Poster


git clone https://github.com/wenlng/go-captcha-example.git
cd go-captcha-example
go mod download
go run main.go

Open in browser: http://127.0.0.1:9001/go-captcha-example


Directory structure

|-internal
  |-app
  |-cache
  |-logic
    |-captdata
      |-click_basic.go      // Generation data for text click
      |-click_shape.go      // Generation data for shape click
      |-rotate_basic.go     // Generation data for rotate
      |-slide_basic.go      // Generation data for slide
      |-slide_region.go     // Generation data for drag region
    |-checkdata
      |-click.go            // Check data for text
      |-rotate.go           // Check data for rotate
      |-slide.go            // Check data for slide
|-web
  |-native                // js+html+css example
  |-bower                 // js+html+css example, bower tool
  |-vue                   // vue3 example
  |-vue2                  // vue2 example
  |-react                 // react example
  |-angular               // angular example
  |-solid                 // solid example
  |-svelte                // svelte example


👍 Sponsor