Search code examples
c#winformsgeneratorcaptcha

How to generate Captchas on C# Windows Forms?


I have an application which could easily be controlled by a bot over network or even on the local machine(which simuates keyboard and mouse e.g.).
I want to avoid this using a captcha. The source has to work without internet / has to be generated during runtime on the computer itself.

Is there any open-source project for this or can someone give me a code example or a link ?


Solution

  • I've found an article "Simple CAPTCHA, Create your own in C#" by Raymund Macaalay. It is for an ASP.NET app, but he generates a normal C# bitmap image using different random fonts in STEP2, so this should also work in your WinForms app.