Password generator

From Rosetta Code
Revision as of 22:15, 24 April 2016 by rosettacode>TobyK (Generate random password)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Password generator is a draft programming task. It is not yet considered ready to be promoted as a complete task, for reasons that should be found in its talk page.

Create a password generation program which will generate passwords containing random ASCII characters from the following groups:

  • lower-case letters: a-z
  • upper-case letters: A-Z
  • digits: 0-9
  • other printable characters excluding white-space, backslash and grave: !"#$%&'()*+,-./:;<=>?@[]^_{|}~


The generated password(s) must include at least one lower-case letter, one upper-case letter and one character from digits and 'other'. The user must be able to specify the password length and the number of passwords to generate. The passwords should be displayed or written to a file, one per line.

The randomness should be from a system source or library. The program should implement a help option or button which should describe the program and options when invoked. You may also allow the user to specify a seed value, and give the option of excluding visually similar characters (for example: Il1, O0, 5S).