line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# |
2
|
|
|
|
|
|
|
#=============================================================================== |
3
|
|
|
|
|
|
|
# |
4
|
|
|
|
|
|
|
# FILE: Pwned.pm |
5
|
|
|
|
|
|
|
# |
6
|
|
|
|
|
|
|
# DESCRIPTION: Throw an exception for a pwned password |
7
|
|
|
|
|
|
|
# |
8
|
|
|
|
|
|
|
# FILES: --- |
9
|
|
|
|
|
|
|
# BUGS: --- |
10
|
|
|
|
|
|
|
# NOTES: --- |
11
|
|
|
|
|
|
|
# AUTHOR: Pete Houston, cpan@openstrike.co.uk |
12
|
|
|
|
|
|
|
# ORGANIZATION: Openstrike |
13
|
|
|
|
|
|
|
# VERSION: See $VERSION in code |
14
|
|
|
|
|
|
|
# CREATED: 29/05/18 14:42:12 |
15
|
|
|
|
|
|
|
# REVISION: --- |
16
|
|
|
|
|
|
|
#=============================================================================== |
17
|
|
|
|
|
|
|
|
18
|
4
|
|
|
4
|
|
70150
|
use strict; |
|
4
|
|
|
|
|
10
|
|
|
4
|
|
|
|
|
115
|
|
19
|
4
|
|
|
4
|
|
21
|
use warnings; |
|
4
|
|
|
|
|
9
|
|
|
4
|
|
|
|
|
145
|
|
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
package Password::Policy::Exception::Pwned; |
22
|
|
|
|
|
|
|
|
23
|
4
|
|
|
4
|
|
535
|
use parent 'Password::Policy::Exception'; |
|
4
|
|
|
|
|
309
|
|
|
4
|
|
|
|
|
20
|
|
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
our $VERSION = '0.02'; |
26
|
|
|
|
|
|
|
|
27
|
6
|
|
|
6
|
1
|
5476
|
sub error { return 'The specified password has been pwned'; } |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
__END__ |