The ICryptoTransform interface represents blockwise cryptographic transformation which could be an encryption, ecryption, hashing, Base64 encoding/decoding, or formatting operation.  You can create an ICryptoTransform object for a given algorithm by using the:

C# 8.0 and .NET Core 3.0 – Modern Cross-Platform Development: Build applications with C#, .NET Core, Entity Framework Core, ASP.NET Core, and ML.NET using Visual Studio Code, 4th Edition
ASP.NET Core 3 and Angular 9: Full stack web development with .NET Core 3.1 and Angular 9, 3rd Edition
C# in Depth, 4th Edition

– CreateEncryptor() method – if you want to encrypt data.

– CreateDecryptor() method – if you want to encrypt data.

 

The next code lines illustrate this approach:

 

Dim Crypt As TripleDES = TripleDES.Create()

Dim Transform As ICryptoTransform = Crypt.CreateEncryptor()