![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
The Oblivious One
Join Date: May 2005
Location: Ontario, Canada
Posts: 639
Rep Power: 4
![]() |
Nothing Special, just a password generator
I needed some random passwords so I made a quick utility in Python using the optparse module.
It might be useful to others, so I figured what the hell, I'd post it here. password.py (this file is in a directory I've appended to the environmental variable PYTHONPATH) python Syntax (Toggle Plain Text)
pgen (placed in a directory in my PATH) python Syntax (Toggle Plain Text)
Example usage: $ pgen
usage: pgen [options]
pgen: error: A value for length is required.
$ pgen --help
usage: pgen [options]
options:
-h, --help show this help message and exit
-d, --digits Include the digits [0-9].
-p, --punct Include common punctuation characters.
-u, --uppercase Include uppercase characters.
-c, --downcase Include lowercase characters.
-l LENGTH, --length=LENGTH
The number of characters in the password.
$ pgen -l10 -d
5722058132
$ pgen -l10 -dc
4d2ybboqth
$ pgen -l10 -dcu
L37uL2QN1W
$ pgen -l10 -dcup
S?U71dU8PT
$ pgen -l64 -dcup
I[Lqg#gcI5YdM;s%C(sF+{yl#EVsF%e/&20P^dCK&z!Lu,s,Y"^B0V!?W5,,VjRG
$ pgen --length=abc
usage: pgen [options]
pgen: error: option --length: invalid integer value: 'abc'
__________________
Dr. Zoidberg: [ecstatic] I'm going to a movie... with FRIENDS! |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| simple password checker | RemoteC2 | C++ | 13 | Aug 10th, 2006 5:07 PM |
| [Python] Password Generator | bulio | Show Off Your Open Source Projects | 2 | Feb 28th, 2006 3:01 AM |
| password box | ragenuub | Visual Basic | 5 | Nov 15th, 2005 3:46 PM |
| Password Generators | 2roll4life7 | Show Off Your Open Source Projects | 0 | Oct 23rd, 2005 9:32 PM |
| Just a small password generator | Jessehk | Show Off Your Open Source Projects | 3 | Sep 16th, 2005 8:41 AM |