GenPass.exe|GenPW.exe -- C.L. Distefano rev. 2017-11-12
Generate a strong password and save it to the Windows clipboard
Note: GenPW.exe has the same functionality as GenPass.exe, but
sends the generated password directly to the clipboard.
No message box is displayed (unless password generation fails).
"Strong" means that the password contains random combinations of
alphanumeric characters, including at least one uppercase letter
(A-N,P-Z), one lowercase letter (a-k,m-z), and one number (0-9).
(Generated passwords do not use uppercase O or lowercase l as
these characters are easily confused with the numbers 0 and 1.)
The length of the password is up to you (see Usage, below),
but needless to say, the longer, the stronger.
By default, GenPass generates a strong password of between 13
and 22 characters that includes two of the following separator
characters: $%&()*+,-./:;@[]_. Alternatively, you can supply a
command-line argument in which any number n from 1 to 9 stands
for a random sequence of alphanumeric characters of length
n, and any other character stands for itself. Thus, you can
include fixed words and other characters, such as separators,
in the generated password. Spaces in the argument are converted
to underscores. Here are some examples:
Usage Sample output
----- -------------
GenPass MqU26A*6dS-53r8
GenPass 9 frdhPYDs9
GenPass 58 weoXYHKxDI1uQ
GenPass 5.5 UfA6j.43VBB
GenPass 3-4-3 0I0-6gq4-njc
GenPass 5,3.7 I2FSR,tRZ.fjeIsFy
GenPass 3)5(3 UMf)m8513(CBq
GenPass 3[haha]3 yLa[haha]P3y
GenPass Yes way5 Yes_way1BsUh
Seed Option (/S)
----------------
Adding switch /S to the command-line argument causes GenPW to
set a randomization seed. This allows you to generate a
predictable password when desired; in other words, the examples
below always generate the same password, unless the
seed is changed.
A bare /S sets a randomized seed which is written to disk in a
file named GENPASS.RND; this seed is used for all subsequent
launches of GenPW with the bare /S option. (Any subsequent launch
of GenPW without the /S option will cause GENPASS.RND to be deleted.)
Alternatively, you can specify a seed (range -2^31 to 2^31-1) on
the command line with /S [seed]. Here are some examples:
GenPW /s
GenPW /s 33.3333
GenPW 5,5,5 /s
GenPW 5,5,5 /s 2^13
[rev.2017-11-12=Su=15:15]