RijndaelManagedTransform Class

 

Performs a cryptographic transformation of data using the Rijndael algorithm. This class cannot be inherited.

Namespace:   System.Security.Cryptography
Assembly:  mscorlib (in mscorlib.dll)

System.Object
  System.Security.Cryptography.RijndaelManagedTransform

[ComVisibleAttribute(true)]
public sealed class RijndaelManagedTransform : ICryptoTransform, 
	IDisposable

NameDescription
System_CAPS_pubpropertyBlockSizeValue

Gets the block size.

System_CAPS_pubpropertyCanReuseTransform

Gets a value indicating whether the current transform can be reused.

System_CAPS_pubpropertyCanTransformMultipleBlocks

Gets a value indicating whether multiple blocks can be transformed.

System_CAPS_pubpropertyInputBlockSize

Gets the input block size.

System_CAPS_pubpropertyOutputBlockSize

Gets the output block size.

NameDescription
System_CAPS_pubmethodClear()

Releases all resources used by the RijndaelManagedTransform class.

System_CAPS_pubmethodDispose()

Releases all resources used by the current instance of the RijndaelManagedTransform class.

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodReset()

Resets the internal state of RijndaelManagedTransform so it can be used again to do a different encryption or decryption.

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

System_CAPS_pubmethodTransformBlock(Byte[], Int32, Int32, Byte[], Int32)

Computes the transformation for the specified region of the input byte array and copies the resulting transformation to the specified region of the output byte array.

System_CAPS_pubmethodTransformFinalBlock(Byte[], Int32, Int32)

Computes the transformation for the specified region of the specified byte array.

System_CAPS_noteNote

Using this class is not recommended. A better practice is to use RijndaelManaged with a CryptoStream object. The CryptoStream object handles the padding issues that can occur when using RijndaelManagedTransform directly. For an example, see the RijndaelManaged class.

Both the CreateEncryptor and CreateDecryptor methods return an instance of the RijndaelManagedTransform class that is initialized with the key information of the current RijndaelManaged object. To encrypt or decrypt data using the Rijndael algorithm, pass the RijndaelManagedTransform object returned by these methods to a CryptoStream object.

.NET Framework
Available since 2.0

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: