public class FileCryptoTool
extends java.lang.Object
Constructor and Description |
---|
FileCryptoTool() |
Modifier and Type | Method and Description |
---|---|
void |
decryptFile(java.io.File inputFile,
java.io.File outputFile) |
void |
encryptFile(java.io.File inputFile,
java.io.File outputFile) |
void |
init(java.lang.String password,
java.lang.String algorithm) |
void |
init(java.lang.String password,
java.lang.String algorithm,
byte[] salt,
int interationCount) |
protected void |
initGui(javax.swing.JFrame frame) |
static void |
main(java.lang.String[] args) |
protected void |
transferFileData(java.io.File inputFile,
java.io.File outputFile,
javax.crypto.Cipher cipher) |
public void init(java.lang.String password, java.lang.String algorithm, byte[] salt, int interationCount) throws java.security.NoSuchAlgorithmException, java.security.spec.InvalidKeySpecException
java.security.NoSuchAlgorithmException
java.security.spec.InvalidKeySpecException
public void init(java.lang.String password, java.lang.String algorithm) throws java.security.NoSuchAlgorithmException, java.security.spec.InvalidKeySpecException
java.security.NoSuchAlgorithmException
java.security.spec.InvalidKeySpecException
public void decryptFile(java.io.File inputFile, java.io.File outputFile) throws java.security.NoSuchAlgorithmException, javax.crypto.NoSuchPaddingException, java.security.InvalidKeyException, java.security.InvalidAlgorithmParameterException, java.io.IOException
java.security.NoSuchAlgorithmException
javax.crypto.NoSuchPaddingException
java.security.InvalidKeyException
java.security.InvalidAlgorithmParameterException
java.io.IOException
public void encryptFile(java.io.File inputFile, java.io.File outputFile) throws java.security.NoSuchAlgorithmException, javax.crypto.NoSuchPaddingException, java.security.InvalidKeyException, java.security.InvalidAlgorithmParameterException, java.io.IOException
java.security.NoSuchAlgorithmException
javax.crypto.NoSuchPaddingException
java.security.InvalidKeyException
java.security.InvalidAlgorithmParameterException
java.io.IOException
protected void transferFileData(java.io.File inputFile, java.io.File outputFile, javax.crypto.Cipher cipher) throws java.io.IOException
java.io.IOException
protected void initGui(javax.swing.JFrame frame)
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception