WinUtilis
__

Password Generator

Description:

Windows command line tool that generates a true random password or list of, in different ways.

Download binary:

Current Version: 2.3 -> pwg.zip

Output example:

 Command Prompt
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\>
C:\>pwg.exe

 pwg.exe v2.3 - Password Generator
 Copyright (C) 1998-2012 Javier Hernandez
 WinUtilis - www.winutilis.net
 Last update - December 15 2012


 Generates a true random password or list of, in different ways.
 This tools is mainly targeted to users who need to file numerous
 passwords a day. e.g: Help desk.

 pwg [/B] [/C] [/CFn] [/CL] [/CU] [/E] [/<path>] [/I <string>]
     [/IC] [/L] [/N] [/O] [/OD] [/OU] [/OL] [/OS] [/PH <string>]]
     [/S] [/V]

        - and / are interchangeable

 /B     Send the result to the Clipboard. This will delete the
        current content of the clipboard.
        Can not be combined with /IC.

 /C     <string> Use only the characters included in the string
        /CF will be ignored.

        syntax example: -c "ABCDEFGHIJKLMNabcdefghijklmn02346789"

 /CF[n] <string> Use predefined character set.

         CF1 = [A-B][a-z]
         CF2 = [A-B][a-z][0-9]
         CF3 = [A-B][a-z][0-9][symbols] <- Default

         syntax example: /CF2

 /CL    Use only lowercase letters.

 /CU    Use only uppercase letters.

 /E     Generate easy to read passwords. (*)
        This simply means that confusing characters
        like l (L) and 1 (ONE) will not be used.

 /F     <path> Save the result to pwg.log file at the
        specified location. If only -f is entered, then
        pwg.log will be created where pwg.exe is located.

 /I     <path> Save the results to a PNG image file at the
        specified location. If only -i is entered, then
        pwg.png will be created where pwg.exe is located.

 /IC    Send the image created by /I to the Clipboard.
        This will delete the current content of the clipboard.
        Can not be combined with /B.

 /L     <integer> Password length. Default is 17.

 /N     No logo. No banner will be shown.

 /O     Suppress the output to the console.

 /OD    Include at least one digit [0-9]. (*)

 /OU    Include at least one upper-case letter [A-Z]. (*)

 /OL    Include at least one lower-case letter [a-z]. (*)

 /OS    Include at least one symbol. (*)

 /PH    <string> Generate phonetic alphabet along with the password.

        Available codes:
        ES : Spain
        FR : France
        SE : Sweden
        US : United States <- Default

        syntax examples:
        /PH
        /PH US
        /PH FR

 /S     <integer> Amount of passwords to be generated at once.
        Can not be combined with /I, /IC. Max value 10000.

 /V     Version information and a short note about this program.



        Examples:

        ex 1: pwg.exe -n
              Generates a password with the default length
              of 17 and default character set -CF3. No logo.
              ~Yz_5NGWK6bJ?rXfU

        ex 2: pwg.exe -n -cf2 -l 21
              Generates a password with length 21 using the
              character set -CF2. No logo
              v9YgechpZwNeAmgD9YyUk

        ex 3: pwg.exe -n -f c:\temp
              Generates a password with the default length
              of 17 and default character set -CF3. Also create
              the log file pwg.log on c:\temp
              Z(Ww)N=DVyhIzORCe

        ex 4: pwg.exe -n -s 3 -l 12
              Generates 3 password of length 12 using the
              default character set -CF3.
              1;,]lM.B5T}VE~JSx
              /sl~lVe;=d7#=tVgZ
              xhbE1A1lzc/Fm#{tX

        ex 5: pwg.exe -n -od -ou -os -ol -b -o
              Generates a password with default length 17,
              default character set -CF3. Using at least 1 digit,
              1 upper case, 1 lower case and 1 symbol. Also copy
              the result to the clipboard ready for use. Suppress
              the output to the console.

        ex 6: pwg.exe -n -od -ou -ol -os -ic -i -o
              Generates a password of length 17, using the
              default character set -CF3. Using at least 1 digit,
              1 upper case, 1 lower case and 1 symbol. Create a PNG
              file with the result and send the image to the clipboard
              and where pwg.exe is located. Suppress the normal output
              to the console.

        ex 7: pwg.exe -n -od -ou -ol -os
              Generates a password of length 17, using the
              default character set -CF3. Using at least 1 digit,
              1 upper case, 1 lower case and 1 symbol.
              dvyQ[PFpg=sEgN$l5


        * Applying conditions to password generation lessens
         their strength if the policy is known, i.e: More clues
         are put on the table on how they are generated.


        Tips: If you need to generate several passwords a day,
        like when working in Help Desk, then the easiest will be
        to configure a shortcut with the parameters of your choice.
        Then pressing that shortcut will generate a new password
        and if you use the flag -b or -i and -ic then place it on
        your clipboard ready for use.

C:\>
C:\>






















Shortcut Instructions:

Configure it like this: 1. Create a shortcut to the file pwg.exe under Start 2. Give it a "Shortcut key" in Properties like: CTRL + ALT + W In this example: - Target is: "E:\data\dev\vcpp\Password Gen\v2.2\pwg\Release\pwg.exe" -n -b -l 15 - Start in: "E:\data\dev\vcpp\Password Gen\v2.2\pwg\Release" - Run: Minimized 3. Done! Snapshot: Shortcut configuration Use it like this: 1. Press CTRL + ALT + W 2. Paste it!
Generated picture with the flag -i Generated picture with the flag /IC -ic
This tool has been tested on: Windows Server 2003 Enterprise Edition Service Pack 2 Windows Server 2003 R2 Enterprise Edition Service Pack 2 Windows Server 2008 Enterprise Edition 64-bit Service Pack 2 Windows Server 2008 R2 Enterprise Edition 64-bit Service Pack 1 Windows Server 2012 Datacenter 64-bit Windows XP Professional Service Pack 3 Windows 7 Enterprise 64-bit Service Pack 1
A short note about this tool: This password generator uses the Class random_device from the boost library that models a non-deterministic random number generator. Implementation-defined stochastic processes are used to produce a sequence of uniformly distributed non-deterministic random numbers. This class uses the MS Cryptographic Service Provider (CSP). See the documentation for the Random numbers section at http://www.boost.org for more information.
 
© 2006 Javier Hernandez. All rights reserved. Terms of Use