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

    PAB3::Crypt::XOR 3.1.5

    Download button

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

    License / Price:

    Last Updated:

    Category:
    Christian Mueller | More programs
    Perl Artistic License / FREE
    August 18th, 2008, 03:27 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    PAB3::Crypt::XOR description

    PAB3::Crypt::XOR is a simple periodic XOR encryption.

    PAB3::Crypt::XOR is a simple periodic XOR encryption.

    SYNOPSIS

    use PAB3::Crypt::XOR qw(:default);

    my $key = 'MYSECRETKEY';

    $crypt = xor_encrypt( $key, 'plain text' );
    print "encrypted: ", unpack( 'H*', $crypt ), "n";

    $plain = xor_decrypt( $key, $crypt );
    print "plain: $plainn";

    $crypt = xor_encrypt_hex( $key, 'plain text' );
    print "encrypted: $cryptn";

    $plain = xor_decrypt_hex( $key, $crypt );
    print "plain: $plainn";


    PAB3::Crypt::XOR provides an interace to simple periodic XOR encryption.

    Code is based on BrowseX XOR Encryption.

    The BrowseX XOR encryption varies by generating a start seed based upon the XORing of all characters in the password. Modulo arithmetic is used with the seed to determine the offset within the password to start. Modulo is again used to determine when to recalculate the seed based upon the currently selected password character. And finally, the password character itself is XORed with the current seed before it is itself used to XOR the data.

    METHODS

    encrypt ( $key, $plain )

    Encrypt plain data with a key. encrypt() works like decrypt() .
    decrypt ( $key, $cipher )

    Decrypt cipher to plain data. decrypt() works like encrypt() .
    encrypt_hex ( $key, $plain )

    Encrypt plain data with a key and return a hexadecimal string of cipher as human readable.
    decrypt_hex ( $key, $hex_cipher )

    Decrypt hexadecimal string of cipher to plain data.

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    XOR encryption | cryptography class | Perl module | XOR | encryption | cryptography

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

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