Coder Social home page Coder Social logo

lhdboy / clickablecaptcha Goto Github PK

View Code? Open in Web Editor NEW
6.0 2.0 3.0 425 KB

ClickableCaptcha是一个使用SkiaSharp类库的可点击图形验证码,这个图形验证码会生成6*6网格的图像,用户根据底部的提示点击图片内正确的相应位置。

License: MIT License

C# 76.92% HTML 23.08%
aspnetcore captcha skiasharp

clickablecaptcha's Introduction

ClickableCaptcha

ClickableCaptcha是一个使用SkiaSharp类库的可点击图形验证码,这个图形验证码会生成6*6网格的图像,用户根据底部的提示点击图片内正确的相应位置。

代码中包含以下结构:

  • screenshot

  • src

    • ClickableCaptcha

    • WebDemo

screenshot是实际运行效果截图保存文件夹;

ClickableCaptcha是主要核心类库文件;

WebDemo是一个演示项目,具体配置请参考Program.cs文件。

截图

桌面浏览器

image

手机效果

image image

自定义

前端的宽高是根据返回的图片大小在css中硬编码的,如需要修改网格数量或者尺寸,请务必修改前端css代码中的样式。

部署

目前只引用SkiaSharp包,如需部署需要安装对应的SkiaSharp.NativeAssets

例如Linux:

<PackageReference Include="SkiaSharp.NativeAssets.Linux" Version="2.88.3" />

clickablecaptcha's People

Contributors

lhdboy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

kaizons mrt3389 dmpx

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.