C# Class Web.Generics.ApplicationServices.CaptchaService

A CAPTCHA (Completely Automated Public Turing test to tell Computers and Humans Apart) Service
Exibir arquivo Open project: inspira/Web.Generics

Public Methods

Method Description
CaptchaService ( String text, int width, int height ) : System
CaptchaService ( int length ) : System
CaptchaService ( int width, int height, int length ) : System
Generate ( ) : Image

Generates a new CAPTCHA valid for 3 minutes

Validate ( string code ) : Web.Captcha.CaptchaResult

Validates the CAPTCHA

Method Details

CaptchaService() public method

public CaptchaService ( String text, int width, int height ) : System
text String
width int
height int
return System

CaptchaService() public method

public CaptchaService ( int length ) : System
length int
return System

CaptchaService() public method

public CaptchaService ( int width, int height, int length ) : System
width int
height int
length int
return System

Generate() public method

Generates a new CAPTCHA valid for 3 minutes
public Generate ( ) : Image
return Image

Validate() public method

Validates the CAPTCHA
public Validate ( string code ) : Web.Captcha.CaptchaResult
code string The code entered by the user
return Web.Captcha.CaptchaResult