Password generator: Difference between revisions
Content added Content deleted
Line 3,070: | Line 3,070: | ||
<lang perl6> |
<lang perl6> |
||
subset MinimumPasswordLength of Int where * >= 4; |
subset MinimumPasswordLength of Int where * >= 4; |
||
subset |
subset NumberOfPasswords of UInt where * != 0; |
||
sub MAIN( |
sub MAIN( NumberOfPasswords:D :c(:$count), MinimumPasswordLength :l(:$length) = 8, Str :x(:$exclude) = '' ) |
||
{ |
{ |
||
.say for password-characters( char-groups( $exclude.comb ) ) |
.say for password-characters( char-groups( $exclude.comb ) ) |
||
Line 3,105: | Line 3,105: | ||
<pre> |
<pre> |
||
Usage: |
Usage: |
||
genpwd.raku [-c|--count=< |
genpwd.raku [-c|--count=<NumberOfPasswords>] [-l|--length=<MinimumPasswordLength>] [-x|--exclude=<Str>] |
||
</pre> |
</pre> |
||