public class FileCryptoTool extends Object
Constructor and Description |
---|
FileCryptoTool() |
Modifier and Type | Method and Description |
---|---|
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) |
public void init(String password, String algorithm, byte[] salt, int interationCount) throws NoSuchAlgorithmException, InvalidKeySpecException
public void init(String password, String algorithm) throws NoSuchAlgorithmException, InvalidKeySpecException
public void decryptFile(File inputFile, File outputFile) throws NoSuchAlgorithmException, NoSuchPaddingException, InvalidKeyException, InvalidAlgorithmParameterException, IOException
public void encryptFile(File inputFile, File outputFile) throws NoSuchAlgorithmException, NoSuchPaddingException, InvalidKeyException, InvalidAlgorithmParameterException, IOException