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: 9 months ago
JSON representation
.Net cross-platform captcha generator with SixLabors library on .NET Core
- Host: GitHub
- URL: https://github.com/bezzad/captchagenerator
- Owner: bezzad
- License: mit
- Created: 2023-02-25T06:42:17.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-04-09T13:16:28.000Z (about 2 years ago)
- Last Synced: 2025-08-29T09:17:43.866Z (10 months ago)
- Topics: captcha, captcha-net, captchanet, cross-platform, generator, image-processing, sixlabors-organization
- Language: C#
- Homepage:
- Size: 1.44 MB
- Stars: 13
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://github.com/bezzad/CaptchaGenerator/actions/workflows/dotnet-windows.yml)
[](https://github.com/bezzad/CaptchaGenerator/actions/workflows/dotnet-ubuntu.yml)
[](https://www.nuget.org/packages/Captcha.Net)
[](https://www.nuget.org/packages/Captcha.Net)
[](https://github.com/bezzad/CaptchaGenerator/blob/master/LICENSE)
[](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);
}
}
}
```