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 > Perl Modules

    Crypt::GCM 0.02

    Download button

    No screenshots available
    Downloads: 1,120  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    Excellent (5.0/5)
    1 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Hiroyuki OYAMA | More programs
    Perl Artistic License / FREE
    August 20th, 2008, 15:05 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    Crypt::GCM description

    A Perl module that features the Galois/Counter mode (GCM).

    Crypt::GCM is a Perl module that features the Galois/Counter mode (GCM).

    SYNOPSIS

    use Crypt::GCM;
    use Crypt::Rijndael;

    my $gcm = Crypt::GCM->new(-key => $key, -cipher => 'Crypt::Rijndael');
    my $gcm->set_iv($iv);
    my $gcm->aad('');
    my $cipher_string = $gcm->encrypt($message);
    my $tag = $gcm->tag;


    The module implements the Galois/Counter Mode (GCM) for Confidentiality and Authentication. The function of GCM in which the plaintext is encrypted into the ciphertext, and an authentication tag is generated on the AAD and the ciphertext.
    new()

    my $cipher = Crypt::GCM->new(
    -key => pack 'H*', '00000000000000000000000000000000',
    -cipher => 'Crypt::Rijndael',
    );

    The new() method creates an new Crypt::GCM object. It accepts a list of -argument => value pairs selected from the following list:

    Argument Description
    -------- -----------
    -key The encryption/decryption key (required)

    -cipher The cipher algorithm (required)

    encrypt()

    my $ciphertext = $cipher->encrypt($plaintext);

    decrypt()

    my $plaintext = $cipher->decrypt($ciphertext);

    set_iv()

    $cipher->set_iv($iv);

    This allows you to change the initialization vector. allow 16byte string.
    aad()

    $cipher->aad($text);
    my $text = $cipher->aad();

    tag()

    $cipher->tag($tag);
    my $tag = $cipher->tag();

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    Galois mode | Counter mode | Perl module | Galois | Counter | Perl

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

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