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

For example:

C:\etjava\examples>java -classpath classes;../lib/enttoolkit.jar com.entrust.toolkit.examples.crypto.CipherExampleDESede
 
Installing providers... DONE
 
Generating key... DONE
 
Encrypting data... DONE
input plaintext: 00:01:02:03:04:05:06:07:08:09
output ciphertext: 93:E2:A9:31:58:64:FA:0D:00:7C:04:F4:F9:83:D3:4C
IV: BC:AA:E5:7E:32:99:E5:01
 
Decrypting data... DONE
input ciphertext: 93:E2:A9:31:58:64:FA:0D:00:7C:04:F4:F9:83:D3:4C
output plaintext: 00:01:02:03:04:05:06:07:08:09
IV: BC:AA:E5:7E:32:99:E5:01