BlazorCaptcha 2.0.0

Suggested Alternatives

BlazorCaptcha 1.7.1

Additional Details

Blazor.commun.dll  is not included in this package

There is a newer version of this package available.
See the version list below for details.
dotnet add package BlazorCaptcha --version 2.0.0
                    
NuGet\Install-Package BlazorCaptcha -Version 2.0.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="BlazorCaptcha" Version="2.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="BlazorCaptcha" Version="2.0.0" />
                    
Directory.Packages.props
<PackageReference Include="BlazorCaptcha" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add BlazorCaptcha --version 2.0.0
                    
#r "nuget: BlazorCaptcha, 2.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#addin nuget:?package=BlazorCaptcha&version=2.0.0
                    
Install BlazorCaptcha as a Cake Addin
#tool nuget:?package=BlazorCaptcha&version=2.0.0
                    
Install BlazorCaptcha as a Cake Tool

Blazor-Captcha

NuGet BlazorCaptcha Nuget Package

Generates a captcha image for a Blazor Server or Webassembly application.

Live demo

Blazor webassembly : https://tossnet.github.io/Blazor-Captcha/

Blazor Captcha

Installation

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)

<link href="_content/BlazorCaptcha/captcha.css" rel="stylesheet" />

Usage

@page "/"
@using BlazorCaptcha

<h3>Hello, world!</h3>


<Captcha @bind-CaptchaWord="@Captcha" CharNumber="@CaptchaLetters" />

<p>@Captcha</p>

@code{
    private string Captcha = "";
    private int CaptchaLetters = 5;

    protected override Task OnInitializedAsync()
    {
        Captcha = BlazorCaptcha.Tools.GetCaptchaWord(CaptchaLetters);

        return base.OnInitializedAsync();
    }
}

<a name="ReleaseNotes"></a>Release Notes

<details open="open"><summary>Version 2.0.0</summary>

  • .NET 7 compatibility removed </details>

<details><summary>Version 1.7.1</summary>

<details><summary>Version 1.6.0</summary>

  • issue #12 </details>

<details><summary>Version 1.5.0</summary>

  • Add DotNet 8.0 framework target </details>

<details ><summary>Version 1.4.2</summary>

  • Update nuget packages </details>

<details><summary>Version 1.4.1</summary>

  • To avoid any confusion, remove 'x', 'V', 'v' chars </details>

<details><summary>Version 1.4.0</summary>

  • issue #10 Characters did not always fit inside the div
  • remove 'X' and '+' chars </details>

<details><summary>Version 1.3.0</summary>

  • migrate to .NET 7 </details>

<details><summary>Version 1.2.4</summary>

  • minor improvement </details>

<details><summary>Version 1.2.3</summary>

  • Add type="button" </details>

<details><summary>Version 1.2.2</summary>

  • add nuget package SkiaSharp.NativeAssets.Linux </details>

<details><summary>Version 1.2.0</summary>

  • NET6, removal of the bootstrap class </details>

⚠️ Breaking changes ⚠️

<details><summary>Version 1.0.1 to 1.1.0</summary>

  • Change the parameter "CaptchaWord" ⇒ "@bind-CaptchaWord"
  • Add the parameter with the length of the word ex : "CharNumber="@CaptchaLetters"
  • Remove the "OnRefresh" parameter </details>
Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  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.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.0.2 212 4/8/2025
2.0.1 210 4/7/2025 2.0.1 is deprecated.
2.0.0 153 4/5/2025 2.0.0 is deprecated.
1.7.1 1,366 12/17/2024
1.7.0 739 11/19/2024
1.6.0 4,931 3/28/2024
1.5.0 2,954 1/27/2024
1.4.2 1,589 11/15/2023
1.4.1 7,155 2/9/2023
1.4.0 818 2/5/2023
1.3.0 1,714 12/2/2022
1.2.4 5,885 8/18/2022
1.2.3 6,017 4/5/2022
1.2.2 684 3/11/2022
1.2.1 1,283 2/17/2022
1.1.0 9,041 1/16/2021
1.0.1 3,298 6/6/2020
1.0.0 1,216 6/6/2020

Update nuget packages