blib/lib/Password/Policy/Encryption/SHA1.pm

filter: Statementstmt 100% 18 / 18 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod 0.0% 0 / 1 totaltotal 95.8% 23 / 24 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
↑ Summary
1 package Password::Policy::Encryption::SHA1;
2 {
3 2 $Password::Policy::Encryption::SHA1::VERSION = '0.02';
4 }
5  
6 # ABSTRACT: The SHA-1 algorithm for Password::Policy
7  
8 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 2 ▶use parent 'Password::Policy::Encryption';
Subroutine BEGIN: called CC=1 SCAR=0.0
12  
13 2 ▶use Digest::SHA1 qw/sha1_hex/;
Subroutine BEGIN: called CC=1 SCAR=0.0
14  
15 5 ▶sub enc {
Subroutine enc: called CC=1 SCAR=0.0
Pod undocumented
16 5 my $self = shift;
17 5 my $password = $self->prepare(shift);
18 4 return sha1_hex($password);
19 }
20  
21 2 1;
22  
23  
24  
25 =pod
26  
27 =head1 NAME
28  
29 Password::Policy::Encryption::SHA1 - The SHA-1 algorithm for Password::Policy
30  
31 =head1 VERSION
32  
33 version 0.02
34  
35 =head1 AUTHOR
36  
37 Andrew Nelson <anelson@cpan.org>
38  
39 =head1 COPYRIGHT AND LICENSE
40  
41 This software is copyright (c) 2012 by Andrew Nelson.
42  
43 This is free software; you can redistribute it and/or modify it under
44 the same terms as the Perl 5 programming language system itself.
45  
46 =cut
47  
48  
49 __END__
↑ Summary