The CryptoStream wraps an ordinary stream and uses an ICryptoTransform. The CryptoStream have the following key advantages:
– You can use automatic encryption without worrying about the block size required by the algorithm, because the CryptoStream uses buffered access.
– CryptoStream wraps an ordinary .NET stream-derived class and you can easily use …