Running MessageDigestExampleSHA1

The MessageDigestExampleSHA1 sample application uses the Entrust implementation of the SHA1 MessageDigest to create a message digest (hash).

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.MessageDigestExampleSHA1

For example:

C:\etjava\examples>java -classpath classes;../lib/enttoolkit.jar com.entrust.toolkit.examples.crypto.MessageDigestExampleSHA1
 
Installing providers... DONE
 
Calculating digest... DONE
digest: 49:41:79:71:4A:6C:D6:27:23:9D:FE:DE:DF:2D:E9:EF:99:4C:AF:03
 
Re-calculating digest... DONE
digest: 49:41:79:71:4A:6C:D6:27:23:9D:FE:DE:DF:2D:E9:EF:99:4C:AF:03