Data update
This commit is contained in:
parent
29a5eea0d4
commit
5c1bb7bfa9
2011 changed files with 35081 additions and 3229 deletions
34
Task/Password-generator/Quackery/password-generator.quackery
Normal file
34
Task/Password-generator/Quackery/password-generator.quackery
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
[ [] unrot
|
||||
over - 1+ times [ i over + rot join swap ]
|
||||
drop ] is range ( n n --> [ )
|
||||
|
||||
[ char a char z range ] constant is lowers ( --> $ )
|
||||
|
||||
[ char A char Z range ] constant is uppers ( --> $ )
|
||||
|
||||
[ char 0 char 9 range ] constant is digits ( --> $ )
|
||||
|
||||
[ $ \!"#$%&'()*+,-./:;<=>?@[]^_{|}~\ ] is others ( --> $ )
|
||||
|
||||
[ [] ' [ lowers uppers digits others ]
|
||||
tuck witheach
|
||||
[ do dup size random peek join ]
|
||||
[] rot witheach [ do join ]
|
||||
rot 4 - times
|
||||
[ dup dup size random peek
|
||||
rot join swap ]
|
||||
drop shuffle ] is password ( n --> $ )
|
||||
|
||||
[ swap times
|
||||
[ dup password echo$ cr ] drop ] is passwords ( n n --> )
|
||||
|
||||
[ say "'passwords' generates a specified" cr
|
||||
say "number of passwords of a specified" cr
|
||||
say "length. For example," cr
|
||||
cr
|
||||
say " 5 10 passwords" cr
|
||||
cr
|
||||
say "will generate five ten-character" cr
|
||||
say "passwords." cr ] is help
|
||||
|
||||
say "Type 'help' for help with passwords."
|
||||
Loading…
Add table
Add a link
Reference in a new issue