Closed GoogleCodeExporter closed 9 years ago
Whoops, I forgot to attach the test driver:
import java.io.ByteArrayInputStream;
import java.io.InputStream;
import java.io.OutputStream;
import java.nio.ByteBuffer;
import de.idyl.winzipaes.AesZipFileEncrypter;
import de.idyl.winzipaes.impl.AESEncrypterJCA;
public class AESZipTest
{
public static void main(String[] args)
throws Exception
{
//int size = 1024 * 1024 * 1024; // 1GiB
int size = 1024 * 1024; // 1MiB
ByteBuffer bb = ByteBuffer.allocate(size);
OutputStream out = System.out;
InputStream in = new ByteArrayInputStream(bb.array());
AesZipFileEncrypter encrypter = new AesZipFileEncrypter(out, new AESEncrypterJCA());
encrypter.add("test.txt", in, "password");
encrypter.close();
out.flush();
out.close();
}
}
Original comment by schultz....@gmail.com
on 15 Aug 2012 at 4:42
thanks for your input
Original comment by olaf.merkert
on 19 Aug 2012 at 7:05
Original comment by olaf.merkert
on 19 Aug 2012 at 7:08
Original issue reported on code.google.com by
schultz....@gmail.com
on 15 Aug 2012 at 4:39