Running CipherExampleDESede
The CipherExampleDESede sample application uses the Entrust implementation of the DESede (Triple DES) cipher to encrypt and decrypt 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.CipherExampleDESedeFor example:
C:\etjava\examples>java -classpath classes;../lib/enttoolkit.jar com.entrust.toolkit.examples.crypto.CipherExampleDESedeInstalling providers... DONEGenerating key... DONEEncrypting data... DONEinput plaintext: 00:01:02:03:04:05:06:07:08:09output ciphertext: 93:E2:A9:31:58:64:FA:0D:00:7C:04:F4:F9:83:D3:4CIV: BC:AA:E5:7E:32:99:E5:01Decrypting data... DONEinput ciphertext: 93:E2:A9:31:58:64:FA:0D:00:7C:04:F4:F9:83:D3:4Coutput plaintext: 00:01:02:03:04:05:06:07:08:09IV: BC:AA:E5:7E:32:99:E5:01