Which is First?Encrypt or Zip

Hello,I just want to know that is it better to encrypt and Zip a plain text file, or vice versa!
[110 byte] By [shankar-screena] at [2007-10-3 2:41:17]
# 1
Depends on what matters to you and on what you want to do with the result.
sabre150a at 2007-7-14 19:39:53 > top of Java-index,Security,Cryptography...
# 2

However, if you encrypt first, the cipher text will not be compressable. If you actually want to make the result smaller, you must compress first, then encrypt.

This is true for any secure stream cipher or block cipher in just about any mode except ECB mode. For a block cipher in ECB mode, it is conceivable that the ciphertext would be compressible to some degree, but much less so than the plaintext.

ghstarka at 2007-7-14 19:39:53 > top of Java-index,Security,Cryptography...
# 3
always first compress and then encrypt. it makes the compression work (as said above) and it makes the encryption more secure (no easy to analyze plaintext).
Maaartina at 2007-7-14 19:39:53 > top of Java-index,Security,Cryptography...