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

Field Summary
(package private)  Io io
           
(package private)  boolean isGUI
           
(package private)  MessagesPrinter mp
           
(package private)  java.lang.String OTP4U_HOME
           
static java.lang.String PSEUDO_RANDOM
           
(package private)  java.util.Random rnd
           
 
Constructor Summary
RandomGenerator()
           
RandomGenerator(java.lang.String home, boolean isGUI)
           
 
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
 

Field Detail

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
Constructor Detail

RandomGenerator

public RandomGenerator()

RandomGenerator

public RandomGenerator(java.lang.String home,
                       boolean isGUI)
Method Detail

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 file
fileName - the file name
length - the file length