Softpedia
 


LINUX CATEGORIES:



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

    LibWeb::Crypt 0.02

    Download button

    No screenshots available
    Downloads: 326  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    Good (3.6/5)
    3 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Colin Kong | More programs
    Perl Artistic License / FREE
    August 8th, 2008, 11:12 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    LibWeb::Crypt description

    LibWeb::Crypt is a Perl module that offers encryption for libweb applications.

    LibWeb::Crypt is a Perl module that offers encryption for libweb applications.

    SYNOPSIS

    use LibWeb::Crypt;
    my $c = new LibWeb::Crypt();

    my $cipher =
    $c->encrypt_cipher(
    -data => $plain_text,
    -key => $key,
    -algorithm => 'Crypt::Blowfish',
    -format => 'hex'
    );

    my $plain_text =
    $c->decrypt_cipher(
    -cipher => $cipher,
    -key => $key,
    -algorithm => 'Crypt::Blowfish',
    -format => 'hex'
    );

    my $encrypted_pass =
    $c->encrypt_password('password_in_plain_text');


    METHODS

    encrypt_cipher()

    Params:

    -data=>, -key=>, -algorithm=>, -format=>

    Pre:

    * -data is the data to be encrypted as cipher,
    * -key is the private key such the same key is needed to decrypt the cipher (sorry, I do not have a rigorous definition for that right now),
    * -algorithm must be 'Crypt::Blowfish', 'Crypt::DES' or 'Crypt::IDEA',
    * -format is the format of the cipher, which must be either 'binary' or 'hex'.

    Post:

    * Encrypt -data and return the cipher.

    Note: this makes use of the Crypt::CBC module and therefore can accept data of arbitrary length.

    decrypt_cipher()

    Params:

    -cipher=>, -key=>, -algorithm=>, -format=>

    Pre:

    · -cipher is the cipher to be decrypted,
    · -key is the private key such that it is the same key used to encrypt the original data of -cipher (sorry, I do not have a rigorous definition for that right now),
    · -algorithm must be 'Crypt::Blowfish', 'Crypt::DES' or 'Crypt::IDEA' and it must match the algorithm used when preparing the cipher,
    · -format is the format of the cipher, which must be either 'binary' or 'hex'.

    Post:

    · Decrypt -cipher and return the original data.

    encrypt_password()

    Usage:

    my $encrypted_password =
    $crypt->encrypt_password($password_in_plain_text);

    Encrypts the parameter (usually a password) and returns a 13-character long string using the perl's crypt() routine and randomly chosen salt.

    Product's homepage

    Requirements:

    · Perl
    · Crypt::CBC
    · Crypt::Blowfish (recommended)
    · Crypt::DES or Crypt::IDEA

      


    TAGS:

    libweb encryption | libweb applications | Perl module | libweb | encryption | cryptography

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

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