|
Cryptix V3.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Thread | +--cryptix.tools.Scar
A command line utility to (a) compress, encrypt and asciify files and/or directories (with or without directory recursion), and (b) accomplish the inverse with user-specified option for recreating a source tree directory.
Uses java.zip tools to deflate and inflate data, Cryptix IJCE for the cipher and message digest (used to compute cipher keys from user plain ascii passphrase) algorithms, and a PGP-style Base-64 armour with P. R. Zimmermann 24-bit CRC method (PRZ24 class) for the [de-]asciification.
Hard-wired default values for cipher (Square) and Simple String To Key (S2K) specifier with message digest (RIPEMD-160) algorithms are used. These and other default values can be individually modified for each user by setting the appropriate properties in a scar.properties file placed in the user's home directory.
Current scar properties that the user can alter are:
Copyright © 1997, 1998
Systemics Ltd on behalf of the
Cryptix Development Team.
All rights reserved.
$Revision: 1.4 $
Field Summary | |
static boolean |
DEBUG
|
Fields inherited from class java.lang.Thread |
MAX_PRIORITY,
MIN_PRIORITY,
NORM_PRIORITY |
Constructor Summary | |
Scar()
|
Method Summary | |
static void |
main(java.lang.String[] args)
|
void |
processOptions(java.lang.String[] args)
Process command line arguments. |
void |
run()
main action. |
void |
unzip(java.util.zip.ZipInputStream zip,
java.io.File dest)
unzip files and/or directories to a destination. |
void |
zip(java.io.File source,
java.util.zip.ZipOutputStream zip,
int level)
Zip files and/or directories to a ZipOutputStream. |
Methods inherited from class java.lang.Thread |
activeCount,
checkAccess,
countStackFrames,
currentThread,
destroy,
dumpStack,
enumerate,
getContextClassLoader,
getName,
getPriority,
getThreadGroup,
interrupt,
interrupted,
isAlive,
isDaemon,
isInterrupted,
join,
join,
join,
resume,
setContextClassLoader,
setDaemon,
setName,
setPriority,
sleep,
sleep,
start,
stop,
stop,
suspend,
toString,
yield |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
public static boolean DEBUG
Constructor Detail |
public Scar()
Method Detail |
public static void main(java.lang.String[] args)
public void processOptions(java.lang.String[] args)
public void run()
public void zip(java.io.File source, java.util.zip.ZipOutputStream zip, int level) throws java.io.FileNotFoundException, java.io.IOException
source
- source file or directory.zip
- destination zip output stream.level
- depth level in the recursion tree of this method.
Used to distinguish top level directory from sub-
directories (whether to apply recursion or not).public void unzip(java.util.zip.ZipInputStream zip, java.io.File dest) throws java.io.FileNotFoundException, java.io.IOException
src
- source zip stream.dest
- destination File object.
|
Cryptix V3.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |