Running SecureRandomExampleFIPS186_2

The SecureRandomExampleFIPS186_2 sample application uses the Entrust implementation of the FIPS 186-2 SecureRandom to generate cryptographically strong random numbers.

To run this sample application, execute the following command line in the etjava/examples directory.

java -classpath classes;../lib/enttoolkit.jar com.entrust.toolkit.examples.crypto.SecureRandomExampleFIPS186_2

For example:

C:\etjava\examples>java -classpath classes;../lib/enttoolkit.jar com.entrust.toolkit.examples.crypto.SecureRandomExampleFIPS186_2
 
Installing providers... DONE
 
Generating random data... DONE
random data: 18:52:9E:B9:2B:ED:DA:89:24:6F
 
Generating more random data... DONE
random data: FA:33:77:CE:9C:C6:79:D7:A0:EA