org.dmonix.io
Class FileCipherer

java.lang.Object
  extended byorg.dmonix.io.FileCipherer

public abstract class FileCipherer
extends java.lang.Object

Utility class for simple cipher/decipher of files.

Copyright: Copyright (c) 2003

Company: dmonix.org

Version:
1.0
Author:
Peter Nerg

Constructor Summary
FileCipherer()
           
 
Method Summary
static void decodeFileDES(java.io.File input, java.io.File output, byte[] key)
          Deprecated. use org.dmonix.cipher.DataCipherer
static void decodeFilePBE(java.io.File input, java.io.File output, char[] key)
          Deprecated. use org.dmonix.cipher.DataCipherer
static void encodeFileDES(java.io.File input, java.io.File output, byte[] key)
          Deprecated. use org.dmonix.cipher.DataCipherer
static void encodeFilePBE(java.io.File input, java.io.File output, char[] key)
          Deprecated. use org.dmonix.cipher.DataCipherer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileCipherer

public FileCipherer()
Method Detail

encodeFileDES

public static void encodeFileDES(java.io.File input,
                                 java.io.File output,
                                 byte[] key)
                          throws java.io.IOException,
                                 java.security.GeneralSecurityException
Deprecated. use org.dmonix.cipher.DataCipherer

Encodes a file using the DES algorithm

Parameters:
input - The input file
output - The output file
key - The key, must be exactly 8 bytes long (required by the algorithm)
Throws:
java.io.IOException
java.security.GeneralSecurityException

encodeFilePBE

public static void encodeFilePBE(java.io.File input,
                                 java.io.File output,
                                 char[] key)
                          throws java.io.IOException,
                                 java.security.GeneralSecurityException
Deprecated. use org.dmonix.cipher.DataCipherer

Encodes a file using the PBEWithMD5AndDES algorithm

Parameters:
input - The input file
output - The output file
key - The key
Throws:
java.io.IOException
java.security.GeneralSecurityException

decodeFileDES

public static void decodeFileDES(java.io.File input,
                                 java.io.File output,
                                 byte[] key)
                          throws java.io.IOException,
                                 java.security.GeneralSecurityException
Deprecated. use org.dmonix.cipher.DataCipherer

Decodes a file using the DES algorithm

Parameters:
input - The input file
output - The output file
key - The key, must be exactly 8 bytes long (required by the algorithm)
Throws:
java.io.IOException
java.security.GeneralSecurityException

decodeFilePBE

public static void decodeFilePBE(java.io.File input,
                                 java.io.File output,
                                 char[] key)
                          throws java.io.IOException,
                                 java.security.GeneralSecurityException
Deprecated. use org.dmonix.cipher.DataCipherer

Encodes a file using the PBEWithMD5AndDES algorithm

Parameters:
input - The input file
output - The output file
key - The key
Throws:
java.io.IOException
java.security.GeneralSecurityException


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