Crypt::Rot13

Crypt::Rot13 is a simple, reversible encryption class.
Download

Crypt::Rot13 Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Julian Fondren
  • Publisher web site:
  • http://search.cpan.org/~ayrnieu/Crypt-Rot13-0.6/Rot13.pm

Crypt::Rot13 Tags


Crypt::Rot13 Description

Crypt::Rot13 is a simple, reversible encryption class. Crypt::Rot13 is a simple, reversible encryption class.SYNOPSIS use Crypt::Rot13; my $rot13 = new Crypt::Rot13; $rot13->charge ("The quick brown fox jumped over the lazy dog."); print $rot13->rot13 (), "n"; print $rot13->rot13 (245.333), "n"; print $rot13->peek (), "n"; open (F, "/etc/passwd") or die "$!"; $rot13->charge (); close (F) or die "$!"; print $rot13->rot13 (-13); while () { $rot13->charge ($_); print $rot13->rot13 (); } $rot13->charge ('a' .. 'z'); foreach (0 .. 26) { print $rot13->rot13 ($_), "n"; }rot13 is a simple encryption in which ASCII letters are rotated 13 places (see below). This module provides an array object with methods to encrypt its string elements by rotating ASCII letters n places down the alphabet.Think of it this way: all of the letters of the alphabet are arranged in a circle like the numbers of a clock. Also like a clock, you have a hand pointing at one of the letters: a. Crypt::Rot13 turns the hand clockwise n times through 'b', 'c', 'd', etc, and back again to 'a', 26 turns later.Crypt::Rot13 turns this hand for every letter of every string it contains a given number of times, the default of which is 13, or exactly half the number of letters in the alphabet. Requirements: · Perl


Crypt::Rot13 Related Software