MKPASSWD(1p)
π MKPASSWD π
okay bestie, this is MKPASSWD(1p) β a User Contributed Perl Documentation page. yes, the "1p" is real, that's the manual section, she's a Perl joint. and honestly? she's giving password-factory energy and we're obsessed. π
β¨ NAME β¨
mkpasswd.pl β it's the example script that shows you how to make a brand new password using String::MkPasswd. like, the tutorial bestie of password generators. π
πΈ SYNOPSIS πΈ
mkpasswd.pl [-options]
#!/bin/sh
NEW_PASSWD=`mkpasswd.pl`
so literally you just run it, or you tuck it into a shell script like that second line and catch the password in a variable. she's lowkey versatile like that. π¦
π«Ά DESCRIPTION π«Ά
okay so here's the vibe: this program spits out a random password, and you get to do a lil tuning of how the characters are distributed. when she's done, the password goes straight to standard output. no notes, no extras, just the goods. β¨
π OPTIONS π
-l#,--length=#β the total length of the password, all of it, the whole thing. the default is9. so if you don't say anything you're getting nine characters, periodt.-d#,--digits=#β the minimum number of digits that will show up in the final password. the default is2. minimum, babes, not a cap. π-c#,--lower=#β the minimum number of lower-case characters that will land in the final password. the default is2. lowercase girlies, represent. π-C#,--upper=#β the minimum number of upper-case characters that will appear in the final password. the default is2. yes, capital-C is the uppercase one. cute, right? it's giving matching set. π-s#,--special=#β the minimum number of non-alphanumeric characters that will make it into the final password. the default is1. so like, the little symbols. the β¨spiceβ¨. π₯-2,--distributeβ if you specify this, the password characters get distributed between the left- and right-hand sides of the keyboard. why? because it makes it harder for an onlooker to see the password as it is typed. anti-shoulder-surfing technology, we love to see it. π--nodigits,--no-digitsβ an alias for--digits=0. just a shortcut to yeet the digits entirely. both spellings, you're covered. π«Ά--nolower,--no-lowerβ an alias for--lower=0. lowercase? not today. πΈ--noupper,--no-upperβ an alias for--upper=0. uppercase? also not today. π--nospecial,--no-specialβ an alias for--special=0. special characters? gone. bye bestie. π¦
π BUGS π
- while it's not really a bug, the
.plextension has been tacked onto the name to avoid conflict with the program of the same name that ships with Expect. so it's less "broken" and more "she had to change her name to avoid the other girl". π
β TODO β
- for completeness, add user password setting functionality as found in Expect's
mkpasswd(1)example. so like, future plans. she said "one day". π
π SEE ALSO π
- <http://expect.nist.gov/#examples>
mkpasswd(1)String::MkPasswd
go look at those too, iykyk. π«Ά
π§ AKNOWLEDGEMENTS π§
Don Libes of the National Institute of Standards and Technology, who wrote the Expect example, mkpasswd(1). king behavior, fr fr. π
π 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 so that's the whole page bestie, no cap, every option accounted for. π
and for the cute lil sign-off: this whole vibe is perl v5.36.0 coded, dated 2022-10-22, and it's an MKPASSWD(1p) original. slay, go make some passwords. β¨ππ¦
π¦ where this page comes from
- ubuntu noble: libstring-mkpasswd-perl 0.05-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libstring-mkpasswd-perl 0.05-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libstring-mkpasswd-perl 0.05-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms