Giter Site home page Giter Site logo

captcha's Introduction

Captcha

项目中包含一个页面,运行之后,可访问路由“/Index”,进行自测,页面如下图所示

avatar

使用方式

嵌入图片,部署之后访问“/captcha”,可直接加载一张图片

接口:

1、api/captcha :返回图片byte[]

2、api/captcha/verify:校验验证码

注意

如果运行在Windows环境,是完成ok的。System.Drawing.Common是完美的解决方案。

如果现在你想要部署在Ubuntu或者Docker环境下,你需要安装 对应平台的 GDI +相关依赖项。

Ubuntu需要安装的依赖库如下

sudo apt install libc6-dev 
sudo apt install libgdiplus

下一步计划

计划1

.Net Core图形处理开源组件有更多选项,下一步计划都试一试

计划2

尝试.Net Core 2.2,将Captcha独立成.Net Standard类库,并借助微软自带DI解耦CaptchaFactory

计划2已完成

captcha's People

Contributors

puzzledalien avatar xu9527 avatar

Watchers

James Cloos 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.