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
CodeLength
Length (number of characters) of the random code used for CAPTCHA generation. The default length is 5 characters.
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).
ImageFormat
The image format in which CAPTCHA images will be rendered. Valid values are: 'Jpeg', 'Gif', 'Bmp', 'Png'. The default value is 'Jpeg'.
ImageWidth
Width of the CAPTCHA image rendered (in pixels). The default value is 250.
ImageHeight
Height of the CAPTCHA image rendered (in pixels). The default value is 50.
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
Validate(BSTR userCode, BSTR hashValue)
Compares the hash of the code sent by argument with the hashed code used to generate the CAPTCHA image.
GetHashValue()
Returns the hashed value of the code rendered in the current CAPTCHA image.