Crypt::PWSafe3::PasswordPolicy - represent a passwordsafe v3 passwprd policy entry of a record.
use Data::Dumper; use Crypt::PWSafe3; use Crypt::PWSafe3::PasswordPolicy; my $record = $vault->getrecord($uuid); my $policy = $record->policy; # print current values print Dumper($policy); # print some values print $policy->UseEasyVision; # change some of them $policy->MaxLength(8); $policy->MinSymbols(2); # put back into record $record->policy($policy);
The following flags can be set (1 = TRUE, 0 = FALSE):
- UseLowercase - UseUppercase - UseDigits - UseSymbols - UseHexDigits - UseEasyVision - MakePronounceable
The following numerical settings can be tuned:
- MaxLength - MinLowercase - MinUppercase - MinDigits - MinSymbols
All of them can be called as functions, see SYNOPSIS for examples. If called with an argument, the value will be changed, otherwise it will just returned.
The raw database value can be assigned by using the raw parameter.
T. Linden <email@example.com>
Copyright (c) 2011-2013 by T.Linden <firstname.lastname@example.org>. All rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.