RuoVea.ExCaptcha
6.0.2
See the version list below for details.
dotnet add package RuoVea.ExCaptcha --version 6.0.2
NuGet\Install-Package RuoVea.ExCaptcha -Version 6.0.2
<PackageReference Include="RuoVea.ExCaptcha" Version="6.0.2" />
paket add RuoVea.ExCaptcha --version 6.0.2
#r "nuget: RuoVea.ExCaptcha, 6.0.2"
// Install RuoVea.ExCaptcha as a Cake Addin #addin nuget:?package=RuoVea.ExCaptcha&version=6.0.2 // Install RuoVea.ExCaptcha as a Cake Tool #tool nuget:?package=RuoVea.ExCaptcha&version=6.0.2
点选验证码、常规验证码 滑块拼图验证
# RuoVea.ExCaptcha
#### 介绍
点选验证码、常规验证码 滑块拼图验证
#### 使用示例
```
// 点选验证码
services.ClickWordCaptcha();
// 获取验证码 图片大小要与前端保持一致(坐标范围)
IClickWordCaptcha b = _captchaHandle.CreateCaptchaImage(_captchaHandle.RandomCode(6), 310, 155);
/// <param name="Token">Token</param>
/// <param name="PointJson">坐标点集合</param>
_captchaHandle.CheckCode(token, captchaCode);
```
```
// 常规验证码
services.GeneralCaptcha();
// 图片大小要与前端保持一致(坐标范围)
IGeneralCaptcha b = _gneralCaptcha.CreateCaptchaImage(4);
/// <param name="Token">Token</param>
/// <param name="PointJson">验证码</param>
_gneralCaptcha.CheckCode(token, captchaCode)
```
```
// 滑块拼图验证
services.SlideCaptcha();
// 获取验证数据
var data = await _captcha.GetAsync();
//检查验证数据
var result = await _captcha.CheckAsync(input);
```
#### 相关配置文件
```
{
/* 验证码 缓存主键 */
"Captcha": {
"Seconds": 30, /* 缓存秒数 */
"ClickPrefix": "Click", /* 点选验证码前缀 */
"GeneralPrefix": "General", /* 点选验证码前缀 */
"SlidePrefix": "Slide" /* 点选验证码前缀 */
}
}
```
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net6.0
- RuoVea.ExCache (>= 6.0.4)
- RuoVea.ExDto (>= 6.0.9)
- RuoVea.ExIdGen (>= 6.0.0)
- RuoVea.ExUtil (>= 6.0.12)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.