EncryptionInputStream eis = new EncryptionInputStream(
fis);
eis.setCipher(new Ass1Cipher());
input = eis;
} else {
DecryptionInputStream dis = new DecryptionInputStream(
fis);
dis.setCipher(new Ass1Cipher());
input = dis;
}
IOUtils.copy(input, fos);
fis.close();
fos.close();