 Cryptosystems often compress data (the "plaintext") "before" encryption for added security.When properly implemented, compression greatly increases the unicity distance by removing patterns that might facilitate cryptanalysis.However, many ordinary lossless compression algorithms produce headers, wrappers, tables, or other predictable output that might instead make cryptanalysis easier.