ASP CAPTCHA: LanapBotDetect Component

LanapBotDetect is a COM Component that creates and validates image and sound CAPTCHAs, which can easily be used from ASP scripts to implement ASP CAPTCHA functionality.

Public Instance Properties

Lanap.BotDetect public instance property CodeLength Length (number of characters) of the random code used for CAPTCHA generation. The default length is 5 characters.
Lanap.BotDetect public instance property CodeType The type of random code used for CAPTCHA generation. Valid values are numeric representations of the LanapBotDetect::CodeTypeEnum members. The default value is 0 (AlphaNumeric).
Lanap.BotDetect public instance property ImageFormat The image format in which CAPTCHA images will be rendered. Valid values are: 'Jpeg', 'Gif', 'Bmp', 'Png'. The default value is 'Jpeg'.
Lanap.BotDetect.Captcha public instance property ImageWidth Width of the CAPTCHA image rendered (in pixels). The default value is 250.
Lanap.BotDetect.Captcha public instance property ImageHeight Height of the CAPTCHA image rendered (in pixels). The default value is 50.
Lanap.BotDetect public instance property TextStyle The text style (distortion algorithm) used for CAPTCHA image generation. Valid values are numeric representations of the LanapBotDetect::TextStyleEnum members. The default value is 31 (ChalkBoard).

Public Instance Methods

Lanap.BotDetect public instance method Validate(BSTR userCode, BSTR hashValue) Compares the hash of the code sent by argument with the hashed code used to generate the CAPTCHA image.
Lanap.BotDetect public instance method GetHashValue() Returns the hashed value of the code rendered in the current CAPTCHA image.
letter
about