Sophie

Sophie

distrib > Mageia > 5 > i586 > media > core-release > by-pkgid > 034fe221163eaad54a2764bbc7551884 > files > 6

perl-Crypt-Enigma-1.3-8.mga5.noarch.rpm

#!/usr/bin/perl -w

use Crypt::Enigma;

unless( defined($ARGV[0]) ) {
	print "Usage: ./enigma.pl 'plain text or encrypted string'\n";
	exit( 0 );
};

my $text = $ARGV[0];

my $enigma = Crypt::Enigma->new;

print "Plain text:\t$text\n";
print "Cipher Text:\t", $enigma->cipher( $text ), " \n";