blib/lib/Perlmazing/Perlmazing/aes_encrypt.pm untested

filter: Statementstmt 0.0% 0 / 7 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 10 CC 1 SCAR 6.9
CC
1
Cov
0%
main
2.0
BEGIN
2.0
CRAP 2.0
1 use Perlmazing qw(get_aes_cipher);
2  
3 # Mainly ripped from Crypt::Rijndael::MySQL
4 sub main {
5 my ($data, $key) = (shift, shift);
6 my $cipher = get_aes_cipher $key;
7 my $pad = 16 - length($data) % 16;
8 $cipher->encrypt($data . (chr($pad) x $pad));
9 }
10  
11 1;