private void encryprtString(JTextArea textArea1, JTextArea textArea2,
File keyFile, Encrypter encrypter) throws Exception {
byte[] resultText = encrypter
.encrypt(textArea1.getText().getBytes(), keyFile);
BASE64Encoder encoder = new BASE64Encoder();
textArea2.setText(new String(encoder.encode(resultText)));
}
private void decryprtString(JTextArea textArea1, JTextArea textArea2,
File keyFile, Encrypter encrypter) throws Exception {
BASE64Decoder decoder = new BASE64Decoder();