Plagger/Crypt/Base64.pm untested

filter: Statementstmt 0.0% 0 / 11 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod 0.0% 0 / 3 totaltotal 0.0% 0 / 19 CC 1 SCAR 6.9
CC
1
Cov
0%
id
2.0
decrypt
2.0
encrypt
2.0
CRAP 2.0
1 package Plagger::Crypt::Base64;
2 use strict;
3 use MIME::Base64 ();
4  
5 sub id { 'base64' }
6  
7 sub decrypt {
8 my($self, $text) = @_;
9 MIME::Base64::decode($text);
10 }
11  
12 sub encrypt {
13 my($self, $text) = @_;
14 MIME::Base64::encode($text, '');
15 }
16  
17 1;
18