Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.6 / 3....
  • Linux Kernel 3.0.82 LTS...
  • KDE Software Compilatio...
  • PulseAudio 4.0
  • Wireshark 1.10.0
  • NetworkManager 0.9.8.2
  • LibreOffice 3.6.6 / 4.0...
  • SystemRescueCd 3.7.0
  • Linux Kernel 3.10 RC6
  • Ubuntu Tweak 0.8.5
  • Home > Linux > Programming > Libraries

    Algorithm::LUHN 1.00

    Download button

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

    License / Price:

    Last Updated:

    Category:
    Tim Ayers | More programs
    Perl Artistic License / FREE
    May 17th, 2007, 00:05 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    Algorithm::LUHN description

    Algorithm::LUHN is a Perl module to calculate the modulus 10 double add double checksum.

    Algorithm::LUHN is a Perl module to calculate the modulus 10 double add double checksum.

    SYNOPSIS

    use Algorithm::LUHN qw/check_digit is_valid/;

    $c = check_digit("43881234567");
    print "It worksn" if is_valid("43881234567$c");

    $c = check_digit("A2C4E6G8"); # this will cause an error

    print "Valid LUHN characters are:n";
    my %vc = Algorithm::LUHN::valid_chars();
    for (sort keys %vc) {
    print "$_ => $vc{$_}n";
    }

    Algorithm::LUHN::valid_chars(map {$_ => ord($_)-ord('A')+10} A..Z);
    $c = check_digit("A2C4E6G8");
    print "It worked againn" if is_valid("A2C4E6G8$c");

    This module calculates the Modulus 10 Double Add Double checksum, also known as the LUHN Formula. This algorithm is used to verify credit card numbers and Standard & Poor's security identifiers such as CUSIP's and CSIN's.

    You can find plenty of information about the algorithm by searching the web for "modulus 10 double add double".

    Requirements:

    · Perl



    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    calculate modulus | double checksum | Perl module | Algorithm::LUHN | calculate | modulus

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

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