line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Password::Policy::Encryption; |
2
|
|
|
|
|
|
|
{ |
3
|
|
|
|
|
|
|
$Password::Policy::Encryption::VERSION = '0.02'; |
4
|
|
|
|
|
|
|
} |
5
|
|
|
|
|
|
|
|
6
|
2
|
|
|
2
|
|
1353
|
use strict; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
71
|
|
7
|
2
|
|
|
2
|
|
10
|
use warnings; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
54
|
|
8
|
|
|
|
|
|
|
|
9
|
2
|
|
|
2
|
|
1313
|
use Password::Policy::Exception::EmptyPassword; |
|
2
|
|
|
|
|
6
|
|
|
2
|
|
|
|
|
410
|
|
10
|
|
|
|
|
|
|
|
11
|
2
|
|
|
2
|
0
|
41
|
sub new { bless {} => shift; } |
12
|
0
|
|
|
0
|
0
|
0
|
sub enc { return "This was not implemented properly."; } |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
# alias |
15
|
|
|
|
|
|
|
sub encrypt { |
16
|
2
|
|
|
2
|
0
|
673
|
my ($self, $arg) = @_; |
17
|
2
|
|
|
|
|
9
|
return $self->enc($arg); |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
sub prepare { |
21
|
10
|
|
|
10
|
0
|
19
|
my ($self, $password) = @_; |
22
|
10
|
|
66
|
|
|
75
|
return $password || Password::Policy::Exception::EmptyPassword->throw; |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
1; |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
=pod |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
=head1 NAME |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
Password::Policy::Encryption |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
=head1 VERSION |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
version 0.02 |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
=head1 AUTHOR |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
Andrew Nelson |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
This software is copyright (c) 2012 by Andrew Nelson. |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
48
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
=cut |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
__END__ |