[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AW: [iaik-jce] Encrypted File


you may use a Cipher*Stream in a way like:

      Cipher idea = ...;
      InputStream is = ...;

      // create the CipherInputStream:
      CipherInputStream cis = new CipherInputStream(is, idea);
      // decrypt to os
      OutputStream os = ...;
      byte[] buffer = ...;
      r = 0;
      while ((r = cis.read(buffer)) > 0)
          os.write(buffer, 0, r);

Dieter Bratko

-----Ursprüngliche Nachricht-----
Von: iaik-jce-owner@iaik.tu-graz.ac.at
[mailto:iaik-jce-owner@iaik.tu-graz.ac.at]Im Auftrag von Antonio Ruiz
Gesendet: Freitag, 23. März 2001 08:36
An: iaik-jce@iaik.at
Betreff: [iaik-jce] Encrypted File

    I've got a file encripted with a IDEA symmetric key, the size of
file is big (3M).
My questions are the next:
Is there any method or class fot to decipher the file in another file?
I could get the file in an array and after to decipher it and save it to
the other file but this requires a lot of memory. Can I do this with
blocks? It's says.... Can I read a block of a file, decipher it and
write it to the other file? How can I do it?

Thanks in advance for your answers,

Antonio Ruiz Martínez
Facultad de Informática-Universidad de Murcia
30001 Murcia - Espańa (Spain)
Telf: +34-968-364644 e-mail: arm@dif.um.es

Mailinglist-archive at

To unsubscribe send an email to listserv@iaik.at with the folowing content: