Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Libraries

    Authen::Captcha 1.023

    Download button

    No screenshots available
    Downloads: 429  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Seth T. Jackson and Josh I. Miller | More programs
    Perl Artistic License / FREE
    August 2nd, 2006, 09:05 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    Authen::Captcha description

    Authen::Captcha is a Perl extension for creating captcha's to verify the human element in transactions.

    Authen::Captcha is a Perl extension for creating captcha's to verify the human element in transactions.

    SYNOPSIS

    use Authen::Captcha;

    # create a new object
    my $captcha = Authen::Captcha->new();

    # set the data_folder. contains flatfile db to maintain state
    $captcha->data_folder('/some/folder');

    # set directory to hold publicly accessable images
    $captcha->output_folder('/some/http/folder');

    # Alternitively, any of the methods to set variables may also be
    # used directly in the constructor

    my $captcha = Authen::Captcha->new(
    data_folder => '/some/folder',
    output_folder => '/some/http/folder',
    );

    # create a captcha. Image filename is "$md5sum.png"
    my $md5sum = $captcha->generate_code($number_of_characters);

    # check for a valid submitted captcha
    # $code is the submitted letter combination guess from the user
    # $md5sum is the submitted md5sum from the user (that we gave them)
    my $results = $captcha->check_code($code,$md5sum);
    # $results will be one of:
    # 1 : Passed
    # 0 : Code not checked (file error)
    # -1 : Failed: code expired
    # -2 : Failed: invalid code (not in database)
    # -3 : Failed: invalid code (code does not match crypt)
    ##############

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    Perl extension | human element | element transactions | Authen::Captcha | Perl | extension

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM