Running MacExampleDESede

The MacExampleDESede sample application utilizes the Entrust implementation of the DESede MAC (Triple DES Message Authentication Code) algorithm to create a MAC for binary data.

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

For example:

C:\etjava\examples>java -classpath classes;../lib/enttoolkit.jar com.entrust.toolkit.examples.crypto.MacExampleDESede
 
Installing providers... DONE
 
Generating key... DONE
 
Calculating MAC... DONE
MAC: 0E:80:A6:9C:22:B5:CE:7C
 
Re-calculating MAC... DONE
MAC: 0E:80:A6:9C:22:B5:CE:7C