net.cjb.teutoburgo.otp4u.crypt
Class RandomGenerator
java.lang.Object
|
+--net.cjb.teutoburgo.otp4u.crypt.RandomGenerator
- public class RandomGenerator
- extends java.lang.Object
Title: OTP4U
Description: One Time Pad for you
Copyright: Copyright (c) 2002
Company: Teutoburgo
- Version:
- 1.0
- Author:
- Pierre Blanc
Method Summary |
void |
generateRandomFile(java.lang.String pathName,
java.lang.String fileName,
int length)
Used to generate a PSEUDO-random file in the entropySource directory
or in the key4key directory.
|
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OTP4U_HOME
java.lang.String OTP4U_HOME
mp
MessagesPrinter mp
rnd
java.util.Random rnd
io
Io io
isGUI
boolean isGUI
PSEUDO_RANDOM
public static final java.lang.String PSEUDO_RANDOM
RandomGenerator
public RandomGenerator()
RandomGenerator
public RandomGenerator(java.lang.String home,
boolean isGUI)
generateRandomFile
public void generateRandomFile(java.lang.String pathName,
java.lang.String fileName,
int length)
- Used to generate a PSEUDO-random file in the entropySource directory
or in the key4key directory.
Use it to test the functionalities of OTP4U.
- Parameters:
pathName
- the path name of the pseudo-random filefileName
- the file namelength
- the file length