Wednesday, August 23, 2006

CipherOutputStream Annoyance

It is great that there is CipherOutputStream/CipherInputStream combo in Java, that allow you to encrypt a stream. But the annoying thing is that COS needs a close() to flush the data that is waiting in buffers to be padded.

Why can't a COS.flush() do it?

Dumb implementation choice.

No comments: