All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class AcmeNet.Util.SecureRandom

AcmeNet.Util.SecureRandom

public class SecureRandom
A cryptographically secure pseudo-random number generator. "Cryptographically secure" means that if an adversary can observe any subset of the values output by the generator, it would be prohibitively difficult for that adversary to predict any of the output that he didn't see. Generating a truly unpredictable "seed" value for each program that runs is a tricky business, since computers are deterministic and there isn't much state on the machine that an adversary can't observe or guess. This class inherits the seed generator distributed by JavaSoft, which probably isn't unpredictable enough for serious industrial use. Even so, this class might take five to ten seconds to initialize, which might trick you into thinking that your program isn't doing anything. This class is a trivial extension of the java.security.SecureRandom class. Its only purpose is to provide the generator field, which provides a single "shared" generator object that all AcmeNet code can use.


Variable Index

 o generator
A secure pseudo-random number generator that is automatically initialized.

Constructor Index

 o SecureRandom()
Create a generator with an automatically chosen (unpredictable) seed.
 o SecureRandom(byte[])
Create a generator with a specified seed.

Variables

 o generator
 public static final SecureRandom generator
A secure pseudo-random number generator that is automatically initialized. Use this rather than

Constructors

 o SecureRandom
 public SecureRandom()
Create a generator with an automatically chosen (unpredictable) seed.

 o SecureRandom
 public SecureRandom(byte seed[])
Create a generator with a specified seed.

Parameters:
seed - the seed to use

All Packages  Class Hierarchy  This Package  Previous  Next  Index