com.braindelay.wpa.simple
Class SimplePasswordGenerator

java.lang.Object
  extended by com.braindelay.wpa.simple.SimplePasswordGenerator

public class SimplePasswordGenerator
extends java.lang.Object

Generates very strong, and truly random, 63 character passwords.

Pokes at random.org for a list of 63 truly random numbers, between 33 and 126. These numbers are then transformed into ASCII characters for a password. The resultant password is, essentially, randomly selected from 94^63 (~ 2 E+124) combinations.

Since random.org generates real random numbers, using atmospheric white noise (see http://www.random.org/essay.html) rather than from pseudo-random generation, a cracker would have no way to break this password save trying a brute force attack on every combination until he found a match: there are no short-cuts available from assumptions of a generated sequence, or of generation from real words that have been encrypted, or idiotic cutesy "hacker" transformations, like replacing o with 0, a with 4 or e with 3.

To be honest, the password isn't going to be one that is easy to remember, but I didn't write this to generate passwords for day-to-day logging into a computer, rather I use it to generate WPA-PSK keys for my wireless network, which is why it defaults to 63 characters.

Another side-effect is that since it needs to poke at random.org you're going to need to run this on a client that has interwebnet access.

The kind of password this generates is: .$\_CXpMWi?MfK>;LZMbaZC<;hG\$*"/}A1t@^T/c.egEwAb<s>ux!=mh]"dv!`

The query used is: http://www.random.org/cgi-bin/randnum?num=63&min=33&max=126&col=1


Constructor Summary
SimplePasswordGenerator()
           
 
Method Summary
 java.lang.String generatePassword()
          Simple, hard-coded call to the random.org URL to get 63 numbers and generate a password from them.
static void main(java.lang.String[] args)
          This takes no arguments it just calls new SimplePasswordGenerator.generatePassword();
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimplePasswordGenerator

public SimplePasswordGenerator()
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.io.IOException
This takes no arguments it just calls new SimplePasswordGenerator.generatePassword();

Throws:
java.io.IOException
See Also:
generatePassword()

generatePassword

public java.lang.String generatePassword()
                                  throws java.io.IOException
Simple, hard-coded call to the random.org URL to get 63 numbers and generate a password from them.

Returns:
A 63 character password, built from a 93 character alphabet, generated from truly random numbers. The result is a pretty strong password.
Throws:
java.io.IOException