line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
use strict; |
2
|
10
|
|
|
10
|
|
54
|
use warnings; |
|
10
|
|
|
|
|
17
|
|
|
10
|
|
|
|
|
239
|
|
3
|
10
|
|
|
10
|
|
45
|
use MIME::Base64 qw(encode_base64); |
|
10
|
|
|
|
|
18
|
|
|
10
|
|
|
|
|
250
|
|
4
|
10
|
|
|
10
|
|
42
|
|
|
10
|
|
|
|
|
17
|
|
|
10
|
|
|
|
|
3029
|
|
5
|
|
|
|
|
|
|
# ABSTRACT: Passphrases and Passwords as objects for Dancer2 |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
=head1 NAME |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
Dancer2::Plugin::Passphrase::Hashed - Helper package for Dancer2::Plugin::Passphrase. |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
=head1 METHODS |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
=head2 rfc2307() |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
=head2 scheme() |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
=head2 algorithm() |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
=head2 cost() |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
=head2 plaintext() |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
=head2 salt_raw() |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
=head2 hash_raw() |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
=head2 salt_hex() |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
=head2 hash_hex() |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
=head2 salt_base64() |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
=head2 hash_base64() |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
=head1 AUTHOR |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
Maintainer: Henk van Oers <hvoers@cpan.org> |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
This software is copyright (c) 2012 by James Aitken. |
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
|
|
|
|
|
|
|
my $class = shift; |
49
|
|
|
|
|
|
|
my @args = @_; |
50
|
89
|
|
|
89
|
0
|
145
|
return bless { @args == 1 ? %{$args[0]} : @args }, $class; |
51
|
89
|
|
|
|
|
286
|
} |
52
|
89
|
50
|
|
|
|
862
|
|
|
0
|
|
|
|
|
0
|
|
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
1; |