1
# encrypt and decrypt a line greater than 256 characters long
2
# this tests for a subtle bug, ie, missing a modulo on $i
4
use Crypt::CipherSaber;
8
my $cs = new Crypt::CipherSaber ('first key');
9
my $long_line = join(' ', (1 .. 100));
10
my $coded = $cs->encrypt($long_line);
12
if ($long_line = $cs->decrypt($coded)) {