Package com.jprotectfile.model

Examples of com.jprotectfile.model.FileEncryptor.encrypt()


        File inputFile = new File(MainView.this.jtfInputFile.getText());
        File outputFile = new File(MainView.this.jtfOutputFile.getText());
        try {
          FileInputStream file1 = new FileInputStream(inputFile);
          FileOutputStream file2 = new FileOutputStream(outputFile);
          enc.encrypt(file1, file2);
        } catch (Exception e) {
          JOptionPane.showMessageDialog(MainView.this, "Erro em criptografar: "+e.getMessage());
        }
        MainView.this.jbEncrypt.setEnabled(true);
        MainView.this.jbDecrypt.setEnabled(true);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.