org.dmonix.cipher
Class DMCipherOutputStreamDES

java.lang.Object
  extended byjava.io.OutputStream
      extended byjava.io.FilterOutputStream
          extended byorg.dmonix.cipher.DMCipherOutputStream
              extended byorg.dmonix.cipher.DMCipherOutputStreamDES

public class DMCipherOutputStreamDES
extends DMCipherOutputStream

A ciphered output stream that uses the DES algorithm.

Copyright: Copyright (c) 2003

Company: dmonix.org

Version:
1.0
Author:
Peter Nerg

Field Summary
 
Fields inherited from class java.io.FilterOutputStream
out
 
Constructor Summary
DMCipherOutputStreamDES(java.io.OutputStream ostream, byte[] key)
          A ciphered output stream that uses the DES algorithm.
 
Methods inherited from class org.dmonix.cipher.DMCipherOutputStream
clone, close, flush, initCipher, initCipher, write, write, write
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DMCipherOutputStreamDES

public DMCipherOutputStreamDES(java.io.OutputStream ostream,
                               byte[] key)
                        throws java.security.NoSuchAlgorithmException,
                               java.security.InvalidKeyException,
                               javax.crypto.NoSuchPaddingException
A ciphered output stream that uses the DES algorithm.

Parameters:
ostream - The outputstream to cipher
key - The key, must be exactly 8 bytes long (required by the algorithm)
Throws:
java.security.NoSuchAlgorithmException
java.security.InvalidKeyException
javax.crypto.NoSuchPaddingException


Copyright © 1998-2005 dmonix.org Peter Nerg, All Rights Reserved.