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) |
protected void |
initGui(JFrame frame) |
static void |
main(String[] args) |
protected void |
transferFileData(File inputFile,
File outputFile,
Cipher cipher) |
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
protected void transferFileData(File inputFile, File outputFile, Cipher cipher) throws IOException
IOException
protected void initGui(JFrame frame)
Copyright © 2006–2018. All rights reserved.