Crypt::...dPolicy(3)

πŸ“¦
version 1.23~20220227git002b0f0 Β· 2 versions
, in fedora 43

πŸ’– 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.

  • UseLowercase
  • UseUppercase
  • UseDigits
  • UseSymbols
  • UseHexDigits
  • UseEasyVision
  • MakePronounceable

and these are the numerical settings you can tune, the little dials you get to fiddle with:

  • MaxLength
  • MinLowercase
  • MinUppercase
  • MinDigits
  • MinSymbols

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 (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