Text::...nceable(3pm)

πŸ’– Text::Password::Pronounceable πŸ’–

okay bestie, this is a page from the User Contributed Perl Documentation set, and it's all about Text::Password::Pronounceable β€” the module that makes passwords you can actually say out loud. no keyboard-smash core. periodt. ✨


🌸 NAME 🌸

Text::Password::Pronounceable β€” Generate pronounceable passwords πŸŽ€


✨ SYNOPSIS ✨

# Generate a pronounceable password that is between 6 and 10 characters.
Text::Password::Pronounceable->generate(6, 10);

# Ditto
my $pp = Text::Password::Pronounceable->new(6, 10);
$pp->generate;

πŸ¦‹ DESCRIPTION πŸ¦‹

This module generates pronuceable passwords, based the the English digraphs by D Edwards. yes literally. it's giving "password but make it sayable" πŸ’…

🧚 METHODS

πŸ’œ new

$pp = Text::Password::Pronounceable->new($min, $max);
$pp = Text::Password::Pronounceable->new($len);

Construct a password factory with length limits of $min and $max. Or, if you hand it just one argument, you get a password factory with a fixed length instead. your factory, your rules, queen πŸ‘‘

πŸ’œ generate

$pp->generate;
$pp->generate($len);
$pp->generate($min, $max);

Text::Password::Pronounceable->generate($len);
Text::Password::Pronounceable->generate($min, $max);

Generate password. that's it, that's the whole job. 🫢

If you use it as an instance method, the arguments you pass override the factory settings β€” so you can switch up the vibe on the fly, no cap.


🌈 HISTORY 🌈

This code derived from mpw.pl, a bit of code with a sordid history. 😭 honestly the lore goes deep:

  • CPAN module by Chia-liang Kao 9/11/2006.
  • Perl cleaned up a bit by Jesse Vincent 1/14/2001.
  • Converted to perl from C by Marc Horowitz, 1/20/2000.
  • Converted to C from Multics PL/I by Bill Sommerfeld, 4/21/86.
  • Original PL/I version provided by Jerry Saltzer.

like… from PL/I to Multics to C to Perl to CPAN? the way this little password generator has a whole ancestry πŸ’€ iconic behavior fr fr.


πŸ‘‘ LICENSE πŸ‘‘

Copyright 2006 by Best Practical Solutions, LLC.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

See <http://www.perl.com/perl/misc/Artistic.html>


okay that's the whole page bestie, go forth and generate some speakable secrets πŸŒΈπŸ”

perl v5.36.0 Β· 2022-11-21 Β· and that's the Text::...nceable(3pm) page, mwah πŸ’‹ thanks for reading, ily, bye πŸŽ€βœ¨

πŸ“¦ where this page comes from