com.darwinsys.security
Class PassPhrase

java.lang.Object
  extended by com.darwinsys.security.PassPhrase

public class PassPhrase
extends java.lang.Object

Cheap, lightweight, low-security password generator. See also: java.security.*;


Field Summary
static int MIN_LENGTH
          Minimum length for a decent password
protected static java.util.Random r
          The random number generator.
 
Constructor Summary
PassPhrase()
           
 
Method Summary
static java.lang.String getNext()
           
static java.lang.String getNext(int length)
           
static void main(java.lang.String[] args)
          Print one password, or a password of the given length(s)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MIN_LENGTH

public static final int MIN_LENGTH
Minimum length for a decent password

See Also:
Constant Field Values

r

protected static final java.util.Random r
The random number generator.

Constructor Detail

PassPhrase

public PassPhrase()
Method Detail

getNext

public static java.lang.String getNext()

getNext

public static java.lang.String getNext(int length)

main

public static void main(java.lang.String[] args)
Print one password, or a password of the given length(s)



Copyright © 1996-2004 Ian F. Darwin. See license.html for usage license.