NAME
Crypt::Role::ScrambledAlphabet - use a password to change the order of the alphabet
SYNOPSIS
use Crypt::Polybius;
my $square = Crypt::Polybius->new_with_traits(
traits => ['Crypt::Role::ScrambledAlphabet'],
password => "FISHING",
);
print $square->encipher("Hello world!"), "\n";
DESCRIPTION
This role scrambles an alphabet. For example, given the password "FISHING", the alphabet from Crypt::Role::LatinAlphabet are rearranged as follows:
A B C D E F G H I K L M N O P Q R S T U V W X Y Z
F I S H N G A B C D E K L M O P Q R T U V W X Y Z
Attrbutes
password
-
The password to scramble the alphabet with. Should use at least some letters which exist in the available alphabet (case-sensitive!).
This attribute is required, and must conform to the
Password
type constraint (Types::Common::String).
Method Modifiers
alphabet
-
The alphabet method is wrapped, changing the order of the letters.
BUGS
Please report any bugs to http://rt.cpan.org/Dist/Display.html?Queue=Crypt-Polybius.
SEE ALSO
Crypt::Polybius, Crypt::Polybius::Greek.
AUTHOR
Toby Inkster <tobyink@cpan.org>.
COPYRIGHT AND LICENCE
This software is copyright (c) 2014 by Toby Inkster.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
DISCLAIMER OF WARRANTIES
THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.