Unix administration - Free Random Password Generator

This is Interesting: Free IT Magazines  
Home > Archive > Unix administration > October 2004 > Free Random Password Generator





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Free Random Password Generator
FreewareTown.com

2004-10-03, 7:47 am

Free Random Password Generator
http://www.sharewareisland.com/randompasswords.aspx
Paul A Sand

2004-10-03, 5:55 pm

In article <d4469d0d.0410030215.2dde921b@posting.google.com>, FreewareTown.com wrote:
> Free Random Password Generator
> http://www.sharewareisland.com/randompasswords.aspx


APG is better: http://www.adel.nursat.kz/apg/

--
-- Paul A. Sand | He who will not reason, is a bigot;
-- university of New Hampshire | he who cannot is a fool;
-- pas@unh.edu | and he who dares not is a slave.
-- http://pubpages.unh.edu/~pas | (Sir William Drummond)
Lew Pitcher

2004-10-03, 5:55 pm

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Paul A Sand wrote:
> In article <d4469d0d.0410030215.2dde921b@posting.google.com>,

FreewareTown.com wrote:
>
>
>
> APG is better: http://www.adel.nursat.kz/apg/


How about
dd if=/dev/random ibs=6 count=1 2>/dev/null | mimencode
?

- --
Lew Pitcher

Master Codewright & JOAT-in-training | GPG public key available on request
Registered Linux User #112576 (http://counter.li.org/)
Slackware - Because I know what I'm doing.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFBYCHEagVFX4UWr64RAhvOAJ40sEzBwbbi
sEAqqqWhk+R5YsUdJwCfX5Ou
fW/8QthpX4OzyEAmCIFrZF4=
=I9da
-----END PGP SIGNATURE-----
James T. Dennis

2004-10-04, 6:02 pm

FreewareTown.com <Spam2@sharewareisland.com> wrote:
> Free Random Password Generator
> http://www.sharewareisland.com/randompasswords.aspx


Here's a simple one:

#!/bin/bash
## JimD: Sun Oct 3 18:12:36 PDT 2004
## Generate a reasonable password of the form: foo@bar where
## foo is some short word (less than six letters long), @ is some
## bit of punctuation, and bar is some other word (of any length)

WORDFILE="${1:-/usr/share/dict/words}"
PUNCT='!"#$%&()+,-./:;<=>@[\\]^_`{|}~'"'"
PUNCTLEN="${#PUNCT}"
set -- $( echo $PUNCT | sed 's/\(.\)/\1 /g' )
shift $(( $RANDOM % $PUNCTLEN + 1 ))
WORDLEN=$( wc -l $WORDFILE | { read x y; echo $x;} )
PW=$( sed -n "$(( $RANDOM % $WORDLEN + 1))p" $WORDFILE )$1
PW=$PW$( sed -n "$(( $RANDOM % $WORDLEN + 1))p" $WORDFILE )
echo "$PW"

I wouldn't put it in any programming contests, it's only tested
under bash and not terribly elegant. With a little extra
effort I could remove the dependencies on wc and sed, so it would use
nothing but shell built-ins (for almost all modern Bourne shells).

Besides it will only generate a few hundred billion passwords with
my paltry little 100,000 word list.

--
Jim Dennis,
Starshine: Signed, Sealed, Delivered

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com