tout à fait d'accord :)
Effectivement. Ben selon moi, entre transformer ton binaire en texte via des appels à Integer ou String.format, où écrire dans ton fichier, via DataOutputStream / DataInputStream
1 long: taille cipher
N bytes: cipher
1 long: taille iv
N byte: iv
1 long: hash
N byte: hash
Les deux opérations prenent le même temps à coder, soit moins que ce que l'on a mis à te répondre :mrgreen: