File Coverage

blib/lib/Password/Policy/Encryption/ROT13.pm
Criterion Covered Total %
statement 16 16 100.0
branch n/a
condition n/a
subroutine 5 5 100.0
pod 0 1 0.0
total 21 22 95.4


line stmt bran cond sub pod time code
1             package Password::Policy::Encryption::ROT13;
2             {
3             $Password::Policy::Encryption::ROT13::VERSION = '0.02';
4             }
5              
6 1     1   41209 use strict;
  1         4  
  1         39  
7 1     1   7 use warnings;
  1         2  
  1         32  
8              
9 1     1   1345 use parent 'Password::Policy::Encryption';
  1         592  
  1         7  
10              
11 1     1   1214 use String::Multibyte;
  1         9043  
  1         138  
12              
13             sub enc {
14 5     5 0 1287 my $self = shift;
15 5         23 my $password = $self->prepare(shift);
16 4         22 my $strmb = String::Multibyte->new('UTF8');
17 4         4172 return $strmb->strrev($password);
18             }
19              
20             1;
21              
22              
23              
24             =pod
25              
26             =head1 NAME
27              
28             Password::Policy::Encryption::ROT13
29              
30             =head1 VERSION
31              
32             version 0.02
33              
34             =head1 AUTHOR
35              
36             Andrew Nelson
37              
38             =head1 COPYRIGHT AND LICENSE
39              
40             This software is copyright (c) 2012 by Andrew Nelson.
41              
42             This is free software; you can redistribute it and/or modify it under
43             the same terms as the Perl 5 programming language system itself.
44              
45             =cut
46              
47              
48             __END__