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.MacExampleDESedeFor example:
C:\etjava\examples>java -classpath classes;../lib/enttoolkit.jar com.entrust.toolkit.examples.crypto.MacExampleDESedeInstalling providers... DONEGenerating key... DONECalculating MAC... DONEMAC: 0E:80:A6:9C:22:B5:CE:7CRe-calculating MAC... DONEMAC: 0E:80:A6:9C:22:B5:CE:7C