RijndaelManagedTransform RijndaelManagedTransform RijndaelManagedTransform RijndaelManagedTransform Class


使用 Rijndael 算法执行数据的加密转换。Performs a cryptographic transformation of data using the Rijndael algorithm. 此类不能被继承。This class cannot be inherited.

public ref class RijndaelManagedTransform sealed : System::Security::Cryptography::ICryptoTransform
public sealed class RijndaelManagedTransform : System.Security.Cryptography.ICryptoTransform
type RijndaelManagedTransform = class
    interface ICryptoTransform
    interface IDisposable
Public NotInheritable Class RijndaelManagedTransform
Implements ICryptoTransform



不建议使用此类。Using this class is not recommended. 更好的做法是将RijndaelManaged CryptoStream与对象一起使用。A better practice is to use RijndaelManaged with a CryptoStream object. 对象处理直接使用RijndaelManagedTransform时可能出现的填充问题。 CryptoStreamThe CryptoStream object handles the padding issues that can occur when using RijndaelManagedTransform directly. 有关示例,请参阅RijndaelManaged类。For an example, see the RijndaelManaged class.

和方法都返回类的实例,该实例使用当前RijndaelManaged对象的密钥信息进行初始化。 RijndaelManagedTransform CreateDecryptor CreateEncryptorBoth the CreateEncryptor and CreateDecryptor methods return an instance of the RijndaelManagedTransform class that is initialized with the key information of the current RijndaelManaged object. 若要使用 Rijndael 算法对数据进行加密或解密, RijndaelManagedTransform请将这些方法返回的对象CryptoStream传递给对象。To encrypt or decrypt data using the Rijndael algorithm, pass the RijndaelManagedTransform object returned by these methods to a CryptoStream object.


BlockSizeValue BlockSizeValue BlockSizeValue BlockSizeValue

获取块大小。Gets the block size.

CanReuseTransform CanReuseTransform CanReuseTransform CanReuseTransform

获取一个值,该值指示是否可重复使用当前转换。Gets a value indicating whether the current transform can be reused.

CanTransformMultipleBlocks CanTransformMultipleBlocks CanTransformMultipleBlocks CanTransformMultipleBlocks

获取一个值,该值指示是否可以转换多个块。Gets a value indicating whether multiple blocks can be transformed.

InputBlockSize InputBlockSize InputBlockSize InputBlockSize

获取输入块大小。Gets the input block size.

OutputBlockSize OutputBlockSize OutputBlockSize OutputBlockSize

获取输出块大小。Gets the output block size.


Clear() Clear() Clear() Clear()

释放 RijndaelManagedTransform 类使用的所有资源。Releases all resources used by the RijndaelManagedTransform class.

Dispose() Dispose() Dispose() Dispose()

释放 RijndaelManagedTransform 类的当前实例所使用的所有资源。Releases all resources used by the current instance of the RijndaelManagedTransform class.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

作为默认哈希函数。Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

获取当前实例的 TypeGets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(Inherited from Object)
Reset() Reset() Reset() Reset()

重置 RijndaelManagedTransform 的内部状态,这样就可将它再次用来进行其他加密或解密。Resets the internal state of RijndaelManagedTransform so it can be used again to do a different encryption or decryption.

ToString() ToString() ToString() ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(Inherited from Object)
TransformBlock(Byte[], Int32, Int32, Byte[], Int32) TransformBlock(Byte[], Int32, Int32, Byte[], Int32) TransformBlock(Byte[], Int32, Int32, Byte[], Int32) TransformBlock(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.

TransformFinalBlock(Byte[], Int32, Int32) TransformFinalBlock(Byte[], Int32, Int32) TransformFinalBlock(Byte[], Int32, Int32) TransformFinalBlock(Byte[], Int32, Int32)

计算指定字节数组的指定区域的转换。Computes the transformation for the specified region of the specified byte array.


IDisposable.Dispose() IDisposable.Dispose() IDisposable.Dispose() IDisposable.Dispose()

执行与释放或重置非托管资源关联的应用程序定义的任务。Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.