ringa_lee
Utiliser CipherOutputStream
Cipher cipher = Cipher.getInstance("AES"); cipher.init(Cipher.ENCRYPT_MODE, key); InputStream is = new FileInputStream(file); CipherOutputStream out = new CipherOutputStream(new FileOutputStream(dest), cipher) IOUtils.copyLarge(is, out);
Utiliser CipherOutputStream