1Crypt::PWSafe3::Field(3U)ser Contributed Perl DocumentatiCornypt::PWSafe3::Field(3)
2
3
4
6 Crypt::PWSafe3::Field - represent a passwordsafe v3 record field.
7
9 use Crypt::PWSafe3;
10 my $record = $vault->getrecord($uuid);
11 print $record-{field}->{user}->raw();
12 print $record-{field}->{user}->len();
13
15 Crypt::PWSafe3::Field represents a record field. This is the raw
16 implementation and you normally don't have to cope with it.
17
18 However, if you ever do, you can do it this way:
19
20 my $field = Crypt::PWSafe3::Field->new(
21 value => 'testing',
22 name => 'title
23 );
24 $record->addfield($field);
25
26 This is the preferred way to do it, Crypt::PWSafe3 does it internaly
27 exactly like this.
28
29 If there already exists a record field of this type, it will be
30 overwritten.
31
32 The better way to handle fields is the method modifyfield() of the
33 class Crypt::PWSafe3::Record.
34
36 Crypt::PWSafe3::Record
37
39 T.v.Dein <tlinden@cpan.org>
40
42 Copyright (c) 2011-2015 by T.v.Dein <tlinden@cpan.org>. All rights
43 reserved.
44
46 This program is free software; you can redistribute it and/or modify it
47 under the same terms of the Artistic License 2.0, see:
48 <http://www.perlfoundation.org/artistic_license_2_0>
49
50
51
52perl v5.30.0 2019-07-26 Crypt::PWSafe3::Field(3)