org.apache.fulcrum.jce.crypto
Class Main

java.lang.Object
  extended by org.apache.fulcrum.jce.crypto.Main

public class Main
extends java.lang.Object

Command line tool for encrypting/decrypting files file [enc|dec] passwd [file]* string [enc|dec] passwd plaintext

Author:
Siegfried Goeschl

Constructor Summary
Main()
           
 
Method Summary
static void main(java.lang.String[] args)
          Allows testing on the command lnie
static void printHelp()
          Prints usage information.
static void processFile(java.lang.String cipherMode, char[] password, java.io.File sourceFile, java.io.File targetFile)
          Decrypt/encrypt a single file
static void processFiles(java.lang.String[] args)
          Decrypt/encrypt a list of files
static void processString(java.lang.String[] args)
          Decrypt/encrypt a string
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Main

public Main()
Method Detail

main

public static void main(java.lang.String[] args)
Allows testing on the command lnie

Parameters:
args - the command line parameters

printHelp

public static void printHelp()
Prints usage information.


processFiles

public static void processFiles(java.lang.String[] args)
                         throws java.lang.Exception
Decrypt/encrypt a list of files

Parameters:
args - the command line
Throws:
java.lang.Exception - the operation failed

processFile

public static void processFile(java.lang.String cipherMode,
                               char[] password,
                               java.io.File sourceFile,
                               java.io.File targetFile)
                        throws java.lang.Exception
Decrypt/encrypt a single file

Parameters:
cipherMode - the mode
password - the passwors
sourceFile - the file to process
targetFile - the targetf file
Throws:
java.lang.Exception - the operation failed

processString

public static void processString(java.lang.String[] args)
                          throws java.lang.Exception
Decrypt/encrypt a string

Parameters:
args - the command line
Throws:
java.lang.Exception - the operation failed


Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.