gzip does a terrible job at this. Long passwords that are in the dictionary come out as much stronger than short passwords not in the dictionary. For example, correcthorsebatterystaple increased the size by much more than ablekindpagequite despite the former being in the dictionary verbatim and the latter not.
lzma does a much better job, but all implementations I could find like to pad things out to 4-byte boundaries giving you poor resolution.
gzip does a terrible job at this. Long passwords that are in the dictionary come out as much stronger than short passwords not in the dictionary. For example, correcthorsebatterystaple increased the size by much more than ablekindpagequite despite the former being in the dictionary verbatim and the latter not.
lzma does a much better job, but all implementations I could find like to pad things out to 4-byte boundaries giving you poor resolution.