Crypt::OOEnigma::Plugboard - The Plugboard object for use in Crypt::OOEnigmas
my $plugboard = Crypt::OOEnigma::Plugboard->new(); # OR my $subHash ={ # The identity cipher with a few pairs of letters swapped A => "B", B => "A", # etc }; my $plugboard = Crypt::OOEnigma::Plugboard->new(cipher => $subHash); # for internal use bu Enigma machines my $cipher-letter = $plugboard->encode($some-clear-text-letter);
This is the Plugboard for use in Crypt::OOEnigmas. Use it when you want to create your own Enigmas with specific properties.
None
Cryptographers talk of the strength of a cryptographic algorithm in term of whether it is computationally feasible to break it. It is, of course, computationally feasible to break an Enigma cipher so don't use it for anything serious!
This package was created in spring 2002 as an exercise in OO Perl and preparing modules properly for CPAN. More importantly, the Enigma is interesting.
CPAN already has a Crypt::Enigma which is not object oriented and implements only one Enigma (whereas you can create any Enigma-like machine with these objects). Hence the package name Crypt::OOEnigma
The Pleasures of Counting, T W Korner, CUP 1996. A great book for anyone with the slightest interest in mathematics: ISBN 0 521 56087 X hardback ISBN 0 521 56823 4 paperback
The Enigmas: Crypt::OOEnigma::Military Crypt::OOEnigma::Commercial
The components: Crypt::OOEnigma::Rotor Crypt::OOEnigma::Reflector Crypt::OOEnigma::Plugboard
S J Baker, Ambriel Consulting, http://ambrielconsulting.com
This package is licenced under the same terms as Perl itself.
To install Crypt::OOEnigma, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Crypt::OOEnigma
CPAN shell
perl -MCPAN -e shell install Crypt::OOEnigma
For more information on module installation, please visit the detailed CPAN module installation guide.