Different size output on same input with Twofish?

Johan Wevers johanw@vulcan.xs4all.nl
Sat, 8 Apr 2000 10:51:10 +0200 (MET DST)

You, Kyle Hasselbacher, wrote:

> I'm wondering whether it's normal to compress and encrypt the same
> input and get such different output.
Yes, it is. The file is encrypted with the symmetric algorithm with a session key that is generated by a pseudo-random generator. This session key is also encrypted and stored with the message. This does not always preserve file size. 150kb is much, but considering the size of the files you're encrypting its relatively small. If you just encrypt them conventionally the output should be always identical. -- ir. J.C.A. Wevers // Physics and science fiction site: johanw@vulcan.xs4all.nl // http://www.xs4all.nl/~johanw/index.html PGP/GPG public keys at http://www.xs4all.nl/~johanw/pgpkeys.html