Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bezzad/captchagenerator

.Net cross-platform captcha generator with SixLabors library on .NET Core
https://github.com/bezzad/captchagenerator

captcha captcha-net captchanet cross-platform generator image-processing sixlabors-organization

Last synced: 6 days ago
JSON representation

.Net cross-platform captcha generator with SixLabors library on .NET Core

Awesome Lists containing this project

README

        

[![.NET Windows x64](https://github.com/bezzad/CaptchaGenerator/actions/workflows/dotnet-windows.yml/badge.svg)](https://github.com/bezzad/CaptchaGenerator/actions/workflows/dotnet-windows.yml)
[![.NET Ubuntu x64](https://github.com/bezzad/CaptchaGenerator/actions/workflows/dotnet-ubuntu.yml/badge.svg)](https://github.com/bezzad/CaptchaGenerator/actions/workflows/dotnet-ubuntu.yml)
[![NuGet](https://img.shields.io/nuget/dt/Captcha.Net.svg)](https://www.nuget.org/packages/Captcha.Net)
[![NuGet](https://img.shields.io/nuget/vpre/Captcha.Net.svg)](https://www.nuget.org/packages/Captcha.Net)
[![License](https://img.shields.io/github/license/bezzad/CaptchaGenerator.svg)](https://github.com/bezzad/CaptchaGenerator/blob/master/LICENSE)
[![Generic badge](https://img.shields.io/badge/support-.Net_6-blue.svg)](https://github.com/bezzad/CaptchaGenerator)

# Captcha Generator .Net
Captcha Generator is a simple cross-platform library for generating image captcha.

## Features

- Simple & Cross-Platform
- Compatible with Linux and Windows
- Compatible with Docker images based on Linux :)

## Installing via [NuGet](https://www.nuget.org/packages/Downloader)

PM> Install-Package Captcha.Net

## Installing via the .NET Core command line interface

dotnet add package Captcha.Net

## Usage:
```csharp
using Captcha.Net;

namespace ConsoleAppSample
{
class Program
{
static void Main(string[] args)
{
var captchaGenerator = new CaptchaGenerator();
var key = captchaGenerator.GenerateCaptchaCode();
var result = captchaGenerator.GenerateCaptchaImage(200, 100, key);
File.WriteAllBytes($"captcha.jpg", result.CaptchaByteData);

Console.WriteLine(result.CaptchBase64Data);
}
}
}

```