org.jets3t.apps.utils
Class FileCryptoTool

java.lang.Object
  extended by org.jets3t.apps.utils.FileCryptoTool

public class FileCryptoTool
extends Object

A rudimentary GUI and utility for encrypting and decrypting files in a way that is compatible with JetS3t's cryptographic features.

Author:
James Murty

Constructor Summary
FileCryptoTool()
           
 
Method Summary
 void decryptFile(File inputFile, File outputFile)
           
 void encryptFile(File inputFile, File outputFile)
           
 void init(String password, String algorithm)
           
 void init(String password, String algorithm, byte[] salt, int interationCount)
           
static void main(String[] args)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileCryptoTool

public FileCryptoTool()
Method Detail

init

public void init(String password,
                 String algorithm,
                 byte[] salt,
                 int interationCount)
          throws NoSuchAlgorithmException,
                 InvalidKeySpecException
Throws:
NoSuchAlgorithmException
InvalidKeySpecException

init

public void init(String password,
                 String algorithm)
          throws NoSuchAlgorithmException,
                 InvalidKeySpecException
Throws:
NoSuchAlgorithmException
InvalidKeySpecException

decryptFile

public void decryptFile(File inputFile,
                        File outputFile)
                 throws NoSuchAlgorithmException,
                        NoSuchPaddingException,
                        InvalidKeyException,
                        InvalidAlgorithmParameterException,
                        IOException
Throws:
NoSuchAlgorithmException
NoSuchPaddingException
InvalidKeyException
InvalidAlgorithmParameterException
IOException

encryptFile

public void encryptFile(File inputFile,
                        File outputFile)
                 throws NoSuchAlgorithmException,
                        NoSuchPaddingException,
                        InvalidKeyException,
                        InvalidAlgorithmParameterException,
                        IOException
Throws:
NoSuchAlgorithmException
NoSuchPaddingException
InvalidKeyException
InvalidAlgorithmParameterException
IOException

main

public static void main(String[] args)
                 throws Exception
Throws:
Exception