demo.cipher
Class CipherStream

java.lang.Object
  |
  +--demo.cipher.CipherStream

public class CipherStream
extends Object

This class tests the CipherInputStream implementation.

A CipherInputStream combines the functionality of an InputStream and a Cipher.

This class first initializes the CipherInputStream with a DES cipher in ENCRYPT mode for reading plain data from a file thereby encrypting it. Subsequently an ordinary FileOutputStream is created for writing the encrypted data to another file. Finally the CipherInputStream is initialized with a DES cipher in DECRYPT mode for reading back the encrypted data and decrypting it again.

Version:
File Revision 17
See Also:
CipherInputStream

Constructor Summary
CipherStream()
           
 
Method Summary
static void main(String[] args)
          Performs the CipherInputStream test.
 void start()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CipherStream

public CipherStream()
Method Detail

start

public void start()

main

public static void main(String[] args)
                 throws IOException
Performs the CipherInputStream test.

This Javadoc may contain text parts from Internet Standard specifications (RFC 2459, 3280, 3039, 2560, 1521, 821, 822, 2253, 1319, 1321, ,2630, 2631, 2268, 3058, 2984, 2104, 2144, 2040, 2311, 2279, see copyright note) and RSA Data Security Public-Key Cryptography Standards (PKCS#1,3,5,7,8,9,10,12, see copyright note).

IAIK-JCE 3.1 with IAIK-JCE CC Core 3.1, (c) 1997-2004 IAIK