implement encryption and compression
encryption