Crypt::Enigma - Perl extension for emulating a World War II Enigma
use Crypt::Enigma; my($enigma) = Crypt::Enigma->new(); # Set the enigma to the proper rotor, ring, and initial setting. $enigma->setup("312", "ABC", "ERZ"); # Plugboard a to b, and b to a. $enigma->stekker("a", "b"); # Input a single letter, and get the encrypted letter. my($output) = $enigma->input("A"); # Input another letter, and get the output. $output = $enigma->input("W");
See the documentation that came with the Crypt::Enigma package for more information.
None by default.
Jason Blakey, <lt>jblakey@frogboy.net<gt>
http://www.frogboy.net/Enigma
To install Crypt::Enigma, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Crypt::Enigma
CPAN shell
perl -MCPAN -e shell install Crypt::Enigma
For more information on module installation, please visit the detailed CPAN module installation guide.