This article for data compression and data encryption.
Data Compression use Gzip algorithm in c# 2.0 and compress, decompress array of bytes that can be converted to files by streams.
Data encryption use custom algorithm for encrypt and decrypt array of bytes or strings which be useful when popular methods can be used by hackers.
These details are provided for information only. No information here is legal advice and should not be used as such.