Giter VIP home page Giter VIP logo

geetest's Introduction

geetest

极验golang sdk

使用方法

  • 主要配置是geetest.Config对象.首先我们需要添加自己的公钥和密钥,公钥请配置在geetest.Config.CaptchaId,密钥配置在geetest.Config.PrivateKey.
  • geetest.GeetestLib 是主要的操作方法集合,CheckServerStatus 校验服务器状态,GenerateChallenge 用于生成challenge,Valid 校验验证码是否正确.您可能需要将GeetestLib对象保存的session,在校验验证码是否正确的时候将其取出,调用Valid的方法.如果您不愿意保存该对象,那么可以使用ValidChallenge函数自行校验验证码是否正确.

示例

在samples文件夹中有相关使用示例,go run server.go,然后在浏览器访问localhost:8080即可访问.

TODO

[] https 支持 [] debug信息打印

geetest's People

Contributors

sdvdxl avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.