Attention! The sweetCAPTCHA script is responsible for unwanted and potentially malicious popups (as it is investigated by Denis Sinegubko and other fellows). It was OK when I created this integration, but since 2015 it was screwed up. Use it on your own risk (or simply do not use it)!
sweetCaptcha is a free captcha service putting the users and your website at first priority. This is a new and fresh graphical captcha focused on enhanced user experience, so instead of using difficult and boring text, SweetCaptcha offers a
See a live demo here
A compiled library is available via NuGet
To install via the nuget package console
Install-Package SweetCaptcha.Net
- Install library to your ASP.NET application via NuGet
- Obtain your AppId and AppSecret by registering on SweetCaptcha website
- Add following settings to your web.config file:
<add key="sweetcaptchaHost" value="http://sweetcaptcha.com/api" />
<add key="sweetcaptchaAppId" value="your_key" />
<add key="sweetcaptchaAppSecret" value="your_secret" />
- Create instance of SweetCaptcha class in your code. See the Sample app for the example.
var sweetcaptcha = new SweetCaptcha.SweetCaptcha(
ConfigurationManager.AppSettings["sweetcaptchaHost"],
ConfigurationManager.AppSettings["sweetcaptchaAppId"],
ConfigurationManager.AppSettings["sweetcaptchaAppSecret"]);
public async Task<string> GetHtml(string language, bool isAutoSubmit = false);
public async Task<bool> Check(string sckey, string scvalue);