Maison > Questions et réponses > le corps du texte
阿神2017-04-18 10:42:05
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);