Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tossnet/blazor-captcha
Generates a captcha image for a Blazor application
https://github.com/tossnet/blazor-captcha
aspnetcore blazor blazor-application blazor-component blazor-server blazor-server-app blazor-webassembly captcha captcha-image csharp nuget skiasharp
Last synced: 1 day ago
JSON representation
Generates a captcha image for a Blazor application
- Host: GitHub
- URL: https://github.com/tossnet/blazor-captcha
- Owner: tossnet
- License: gpl-3.0
- Created: 2020-06-05T16:08:18.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-12-17T16:58:13.000Z (about 2 months ago)
- Last Synced: 2025-01-24T12:07:40.750Z (8 days ago)
- Topics: aspnetcore, blazor, blazor-application, blazor-component, blazor-server, blazor-server-app, blazor-webassembly, captcha, captcha-image, csharp, nuget, skiasharp
- Language: C#
- Homepage:
- Size: 477 KB
- Stars: 37
- Watchers: 2
- Forks: 9
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Blazor-Captcha
[![NuGet](https://img.shields.io/nuget/v/BlazorCaptcha.svg)](https://www.nuget.org/packages/BlazorCaptcha/) ![BlazorCaptcha Nuget Package](https://img.shields.io/nuget/dt/BlazorCaptcha)Generates a captcha image for a Blazor Server or Webassembly application.
![Blazor Captcha](https://github.com/tossnet/Blazor-Captcha/blob/master/blazor-captcha.png)
# Installation
Latest version in here: [![NuGet](https://img.shields.io/nuget/v/BlazorCaptcha.svg)](https://www.nuget.org/packages/BlazorCaptcha/)To Install
```
Install-Package BlazorCaptcha
```
or
```
dotnet add package BlazorCaptcha
```
For client-side and server-side Blazor - add script section to _Host.cshtml (head section)```html
```
## Usage
```html
@page "/"
@using BlazorCaptchaHello, world!
@Captcha
@code{
private string Captcha = "";
private int CaptchaLetters = 5;protected override Task OnInitializedAsync()
{
Captcha = BlazorCaptcha.Tools.GetCaptchaWord(CaptchaLetters);return base.OnInitializedAsync();
}
}
```Version 1.7.1
>- https://github.com/tossnet/Blazor-Captcha/issues/20#issuecomment-2549029344Version 1.6.0
>- issue #12Version 1.5.0
>- Add DotNet 8.0 framework targetVersion 1.4.2
>- Update nuget packagesVersion 1.4.1
>- To avoid any confusion, remove 'x', 'V', 'v' charsVersion 1.4.0
>- issue #10 Characters did not always fit inside the div
>- remove 'X' and '+' charsVersion 1.3.0
>- migrate to .NET 7Version 1.2.4
>- minor improvementVersion 1.2.3
>- Add type="button"Version 1.2.2
>- add nuget package SkiaSharp.NativeAssets.LinuxVersion 1.2.0
>- NET6, removal of the bootstrap class### ⚠️ Breaking changes ⚠️
Version 1.0.1 to 1.1.0
>- Change the parameter "CaptchaWord" => "@bind-CaptchaWord"
>- Add the parameter with the length of the word ex : "CharNumber="@CaptchaLetters"
>- Remove the "OnRefresh" parameter