Crypt::...dPolicy(3)
π Crypt::PWSafe3::PasswordPolicy π
okay bestie, so this page lives in the User Contributed Perl Documentation section of the manual (perl section 3, iykyk) and it's literally all about Crypt::PWSafe3::PasswordPolicy β the little icon that represents a passwordsafe v3 password policy entry of a record. β¨
π NAME π
Crypt::PWSafe3::PasswordPolicy β no cap, this represents a passwordsafe v3 passwprd policy entry of a record. (yes the typo "passwprd" is canon, it's in the original, we don't touch it, it's iconic π)
πΈ SYNOPSIS πΈ
here's the vibe, copy-paste ready:
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);
likeβ¦ grab the record, grab its policy, dump it, read a value, change a couple values, shove it back in. the whole glow-up. π
β¨ DESCRIPTION β¨
so these are the flags you can set, and it's giving boolean energy: 1 = TRUE, 0 = FALSE. periodt.
UseLowercaseUseUppercaseUseDigitsUseSymbolsUseHexDigitsUseEasyVisionMakePronounceable
and these are the numerical settings you can tune, the little dials you get to fiddle with:
MaxLengthMinLowercaseMinUppercaseMinDigitsMinSymbols
every single one of them can be called as functions β check the SYNOPSIS above for examples, bestie. π«Ά and here's the rules of the game:
- if you call it with an argument, the value gets changed π«
- if you call it without one, it just gets returned to you π
also!! the raw database value can be assigned by using the raw parameter. that's the secret menu item, iykyk π₯
π SEE ALSO π
Crypt::PWSafe3::Record β go read that one too, they're a duo fr fr π¦
π AUTHOR π
T.v.Dein <tlinden@cpan.org>
πΈ COPYRIGHT πΈ
Copyright (c) 2011-2015 by T.v.Dein <tlinden@cpan.org>. All rights reserved.
π§ LICENSE π§
This program is free software; you can redistribute it and/or modify it under the same terms of the Artistic License 2.0, see: <http://www.perlfoundation.org/artistic_license_2_0>
okay that's the whole page, you ate it, main character energy, go forth and manage those password policies π β¨
this was perl v5.42.0, dated 2025-07-25 β mwah, bye bestie! ππ¦π
π¦ where this page comes from
- fedora 43: perl-Crypt-PWSafe3 1.23~20220227git002b0f0-11.fc43 Β· Artistic-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms