MKPASSWD(1)
π MKPASSWD π
okay bestie, so this is mkpasswd.pl β a whole little example program that lives in the User Contributed Perl Documentation corner of your man pages, and it's here to show you how to make brand new passwords with String::MkPasswd. it's giving "tiny script, big utility." β¨
πΈ NAME πΈ
mkpasswd.pl β the example that shows you how to generate a fresh new password using String::MkPasswd. π
π SYNOPSIS π
mkpasswd.pl [-options]
#!/bin/sh
NEW_PASSWD=`mkpasswd.pl`
so like, you run it, and it just... gives you a password. no cap. π₯
π¦ DESCRIPTION π¦
okay so here's the vibe: this program generates a random password, and it lets you do a little bit of tuning on how the characters get distributed. the finished password goes straight to standard output, so you can pipe it, capture it, whatever your heart desires. π
β¨ OPTIONS β¨
-l #,--length=#β how long the whole password is, total. default is9. π-d #,--digits=#β the minimum number of digits that will show up in the final password. default is2.-c #,--lower=#β the minimum number of lower-case characters that will show up in the final password. default is2.-C #,--upper=#β the minimum number of upper-case characters that will show up in the final password. default is2.-s #,--special=#β the minimum number of non-alphanumeric characters that will show up in the final password. default is1. π-2,--distributeβ if you turn this on, the password's characters get spread out between the left-hand and right-hand sides of the keyboard. the whole point? it makes it way harder for an onlooker to clock your password while you're typing it. stealth mode, lowkey. π΅οΈββοΈ--nodigits,--no-digitsβ this is just an alias for--digits=0.--nolower,--no-lowerβ alias for--lower=0.--noupper,--no-upperβ alias for--upper=0.--nospecial,--no-specialβ alias for--special=0.
π BUGS π
- while it's not really a bug, the
.plextension got tacked on to avoid conflict with the program of the same name that ships with Expect. so like, they had to differentiate. it's giving "two girls, one name, chaos avoided." π
β TODO β
- for completeness, add user password setting functionality like the one found in Expect's
mkpasswd(1)example. someday, bestie. someday. β¨
π SEE ALSO π
<http://expect.nist.gov/#examples>, mkpasswd(1), String::MkPasswd
π«Ά AKNOWLEDGEMENTS π«Ά
big love to Don Libes of the National Institute of Standards and Technology, who wrote the Expect example, mkpasswd(1). king behavior, honestly. π
π AUTHOR π
Chris Grau <cgrau@cpan.org>
π COPYRIGHT AND LICENSE π
Copyright (C) 2003-2004 by Chris Grau
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.1 or, at your option, any later version of Perl 5 you may have available.
okay and that's the whole page, periodt. this little gem shipped as part of perl v5.42.0 and got dated 2025-07-25 β so yeah, it's been out here living its main character era since forever and it's still slaying. bye bestie, go make a password π β¨
π¦ where this page comes from
- fedora 43: perl-String-MkPasswd-scripts 0.05-3.fc43 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms