org.polyglotted.crypto.utils
Class FileCryptoUtils
java.lang.Object
org.polyglotted.crypto.utils.FileCryptoUtils
public abstract class FileCryptoUtils
- extends Object
PropertyFileCrypto is a attrib-repo utility that encrypts and decrypts '.properties' files.This file encrypts only
property keys that are prefixed with an ampersand
- Author:
- Shankar Vasudevan
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EQUALS
protected static final String EQUALS
- See Also:
- Constant Field Values
FileCryptoUtils
public FileCryptoUtils()
cryptCopy
public static void cryptCopy(AbstractCrypto crypto,
InputStream propertyIs,
OutputStream output,
String prefix)
- Copy the contents of the inputFile into outputFile while en(/de)crypting the contents of a line prefixed with a
special character
- Parameters:
crypto - the cryptography algorithm to be usedpropertyIs - the property file input streamoutput - the output stream to write the decrypted valuesprefix - the String prefix for lines which have to be decryted
Copyright © 2012-2013 Polyglotted Org. All Rights Reserved.