support for encryption and compression