Linux SoftwareProgrammingLibrariesMath::XOR 0.02

Math::XOR 0.02


Math::XOR is a package to handle XOR encryption of string buffers. SYNOPSIS use XOR; print xor_buf("hello", "w
Developer:   Tyler MacDonald
      more software by author →
Price:  0.00
License:   Perl Artistic License
File size:   1K
Language:   
OS:   
Rating:   0 /5 (0 votes)
Your vote:  
enlarge screenshot


Math::XOR is a package to handle XOR encryption of string buffers.

SYNOPSIS

use XOR;
print xor_buf("hello", "world"), "n";

The XOR module allows you to quickly XOR two strings together. This is the only method of encryption that (assuming the randomness of the pattern used as an encryption key) truly cannot be broken. It also has interesting, very direct mathematical properties which can be fun to play with:

XOR string 1 and string 2, you get string 3 XOR string 1 and string 3, you get string 2 XOR string 2 and string 3, you get string 1

FUNCTIONS

xor_buf($string1, $string2)

This function will return a scalar, which is the result of XORing the two strings passed to it together. The strings may contain binary data.

If $string2 is not at least as many characters long as $string1, xor_buf() will print an error and return undef. Only as many characters as there are in $string1 will be returned; excess characters in $string2 will be ignored. For this reason, when encrypting data it is good to think of $string1 as your "data" and $string2 as your "key".

Requirements:
  • Perl
    tags you get  get string  xor buf  and string  xor string  many characters  two strings  

    Download Math::XOR 0.02


     http://mirrors.evolva.ro/CPAN/authors/id/C/CR/CRAKRJACK/Math-XOR-0.02.tar.gz


    Authors software

    mod_bt 0.0.19 (by Tyler MacDonald)
    mod_bt is a BitTorrent tracker for the Apache webserver

    Math::XOR 0.02 (by Tyler MacDonald)
    Math::XOR is a package to handle XOR encryption of string buffers.

    SYNOPSIS

    use XOR;
    print xor_buf("hello", "w

    Net::BitTorrent::LibBT::Tracker 0.018 (by Tyler MacDonald)

    DBIx::Migration::Directories 0.05 (by Tyler MacDonald)
    DBIx::Migration::Directories is a Perl module to install/remove/upgrade/downgrade SQL schemas.

    SYNOPSIS

    use DBIx::Migration::D


    Similar software

    Math::XOR 0.02 (by Tyler MacDonald)
    Math::XOR is a package to handle XOR encryption of string buffers.

    SYNOPSIS

    use XOR;
    print xor_buf("hello", "w

    Math::String::Charset 1.27 (by Tels)
    Math::String::Charset is a simple charset for Math::String objects.

    SYNOPSIS

    use Math::String::Charset;

    $a = new Mat

    Template::Tutorial 2.15 (by Andy Wardley)
    Template::Tutorial are template toolkit tutorials.

    This section includes tutorials on using the Template Toolkit

    Levenshtein 0.10.1 (by David Necas)

    Unicode.php 0.1.1 (by CentralNic Labs)
    Unicode.php provides some PHP classes for maniuplating Unicode data

    MIME::Base64 3.07 (by Gisle Aas)
    MIME::Base64 is an encoding and decoding of base64 strings.

    SYNOPSIS

    use MIME::Base64;

    $encoded = encode_base64('Aladdin:o

    String::Truncate 0.100 (by Ricardo Signes)
    String::Truncate is a Perl module for when strings are too long to be displayed in.

    SYNOPSIS

    This module handles the simple but

    Convert::UU 0.52 (by Andreas Koenig)
    Convert::UU is a Perl module for uuencode and uudecode.

    SYNOPSIS

    use Convert::UU qw(uudecode uuencode);
    $encoded_string =

    my_string 1.1 (by Boulat Khakimov)
    my_string is an easy-to-use, fast string manipulation library

    Better String Library 07222006 (by Paul Hsieh)
    Better String Library is an abstraction of a string data type which is superior to the C library char buffer string type and C++'


    Other software in this category

    zlib 1.2.3 (by Jean-loup Gailly)
    zlib is designed to be a free, general-purpose, legally unencumbered, lossless data-compression library for use on virtually any comp

    libjpeg v6b (by Independent JPEG Group)
    libjpeg is a library for handling the JPEG (JFIF) image format

    OpenSSL 0.9.7c (by The OpenSSL Project Team)
    The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implement

    libxml2 2.6.27 (by DV)
    Libxml2 is the XML C parser and toolkit developed for the Gnome project (but usable outside of the Gnome platform), libxml2 library i

    GNU C library 2.4 (by Andreas Jaeger)
    GNU C library (glibc) is one of the most important components of GNU Hurd and most modern Linux distributions.

    GNU C library is us

  •     search


    Featured Software

    jEdit 4.3 pre8
    jEdit is an Open Source text editor written in Java

    Opera 9.02
    Surf the Internet in a safer, faster, and easier way with Opera browser

    GNU Aspell 0.60.4
    GNU Aspell is a Free and Open Source spell checker designed to eventually replace Ispell


    Subscribe in Rojo
    Google Reader
    Add to My Yahoo!

    Add to My AOL
    Subscribe with Bloglines
    Subscribe in NewsGator Online
    Add 'nixbit linux software' to Newsburst from CNET News.com
    del.icio.us nixbit linux software


    Top tags