|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--demo.cipher.CipherStream
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.
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 |
public CipherStream()
Method Detail |
public void start()
public static void main(String[] args) throws IOException
|
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). | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |