| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
# ================================================================ |
|
2
|
|
|
|
|
|
|
package App::iTan; |
|
3
|
|
|
|
|
|
|
# ================================================================ |
|
4
|
1
|
|
|
1
|
|
871
|
use utf8; |
|
|
1
|
|
|
|
|
8
|
|
|
|
1
|
|
|
|
|
3
|
|
|
5
|
1
|
|
|
1
|
|
482
|
use Moose; |
|
|
1
|
|
|
|
|
301388
|
|
|
|
1
|
|
|
|
|
5
|
|
|
6
|
1
|
|
|
1
|
|
4265
|
use 5.0100; |
|
|
1
|
|
|
|
|
2
|
|
|
7
|
|
|
|
|
|
|
|
|
8
|
1
|
|
|
1
|
|
532
|
use MooseX::App qw(Color); |
|
|
1
|
|
|
|
|
11454302
|
|
|
|
1
|
|
|
|
|
5
|
|
|
9
|
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
app_namespace 'App::iTan::Command'; |
|
11
|
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
our $VERSION = '1.06'; |
|
13
|
|
|
|
|
|
|
our $AUTHORITY = 'cpan:MAROS'; |
|
14
|
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
__PACKAGE__->meta->make_immutable; |
|
16
|
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
=encoding utf8 |
|
18
|
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
=head1 NAME |
|
20
|
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
App::iTan - Secure management of iTANs for online banking |
|
22
|
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
=head1 SYNOPSIS |
|
24
|
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
# Import a list of itans |
|
26
|
|
|
|
|
|
|
console$ itan import --file itanlist.txt |
|
27
|
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
# Fetch an itan and mark it as used (after password prompt) |
|
29
|
|
|
|
|
|
|
console$ itan get --index 15 --memo "paid rent 06/2012" |
|
30
|
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
# List all itans |
|
32
|
|
|
|
|
|
|
console$ itan list |
|
33
|
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
=head1 DESCRIPTION |
|
35
|
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
This command line application facilitates the secure handling of iTANs |
|
37
|
|
|
|
|
|
|
(indexed Transaction Numbers) as used by various online banking tools. |
|
38
|
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
iTANs are encrypted using L<Crypt::Twofish> and are by default stored |
|
40
|
|
|
|
|
|
|
in a SQLite database located at ~/.itan. (Patches for other database |
|
41
|
|
|
|
|
|
|
vendors welcome) |
|
42
|
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
=head1 COMMANDS |
|
44
|
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
=over |
|
46
|
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
=item * delete |
|
48
|
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
Delete all invalid iTANs |
|
50
|
|
|
|
|
|
|
L<App::iTan::Command::Delete> |
|
51
|
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=item * get |
|
53
|
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
Fetches selected iTAN |
|
55
|
|
|
|
|
|
|
L<App::iTan::Command::Get> |
|
56
|
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
=item * help |
|
58
|
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
Prints this usage information |
|
60
|
|
|
|
|
|
|
L<App::iTan::Command::Help> |
|
61
|
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
=item * import |
|
63
|
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
Imports a list of iTans into the database |
|
65
|
|
|
|
|
|
|
L<App::iTan::Command::Import> |
|
66
|
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
=item * info |
|
68
|
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
Info about the selected iTAN |
|
70
|
|
|
|
|
|
|
L<App::iTan::Command::info> |
|
71
|
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
=item * list |
|
73
|
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
List of all iTANs |
|
75
|
|
|
|
|
|
|
L<App::iTan::Command::List> |
|
76
|
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
=item * reset |
|
78
|
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
Reset unused iTANs |
|
80
|
|
|
|
|
|
|
L<App::iTan::Command::Reset> |
|
81
|
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
=back |
|
83
|
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
=head1 SUPPORT |
|
85
|
|
|
|
|
|
|
|
|
86
|
|
|
|
|
|
|
Please report any bugs or feature requests to |
|
87
|
|
|
|
|
|
|
C<app-itan@rt.cpan.org>, or through the web interface at |
|
88
|
|
|
|
|
|
|
L<http://rt.cpan.org/Public/Bug/Report.html?Queue=App::iTan>. |
|
89
|
|
|
|
|
|
|
I will be notified and then you'll automatically be notified of the progress |
|
90
|
|
|
|
|
|
|
on your report as I make changes. |
|
91
|
|
|
|
|
|
|
|
|
92
|
|
|
|
|
|
|
=head1 AUTHOR |
|
93
|
|
|
|
|
|
|
|
|
94
|
|
|
|
|
|
|
Maroš Kollár |
|
95
|
|
|
|
|
|
|
CPAN ID: MAROS |
|
96
|
|
|
|
|
|
|
maros [at] k-1.com |
|
97
|
|
|
|
|
|
|
|
|
98
|
|
|
|
|
|
|
http://www.k-1.com |
|
99
|
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
|
=head1 COPYRIGHT |
|
101
|
|
|
|
|
|
|
|
|
102
|
|
|
|
|
|
|
App::iTan is Copyright (c) 2012 Maroš Kollár |
|
103
|
|
|
|
|
|
|
- L<http://www.k-1.com> |
|
104
|
|
|
|
|
|
|
|
|
105
|
|
|
|
|
|
|
=head1 LICENCE |
|
106
|
|
|
|
|
|
|
|
|
107
|
|
|
|
|
|
|
This library is free software, you can redistribute it and/or modify |
|
108
|
|
|
|
|
|
|
it under the same terms as Perl itself. |
|
109
|
|
|
|
|
|
|
|
|
110
|
|
|
|
|
|
|
=cut |
|
111
|
|
|
|
|
|
|
|
|
112
|
|
|
|
|
|
|
'Sponsored by Lehman Brothers Holdings Inc.'; |