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
[System.Runtime.InteropServices.ComVisible(true)]
public sealed class RijndaelManagedTransform : System.Security.Cryptography.ICryptoTransform
type RijndaelManagedTransform = class
    interface ICryptoTransform
    interface IDisposable
Public NotInheritable Class RijndaelManagedTransform
Implements ICryptoTransform
繼承
RijndaelManagedTransformRijndaelManagedTransformRijndaelManagedTransformRijndaelManagedTransform
屬性
實作

備註

注意

不建議使用這個類別。Using this class is not recommended. 更好的做法是使用RijndaelManagedCryptoStream物件。A better practice is to use RijndaelManaged with a CryptoStream object. CryptoStream物件會處理使用時可能發生的邊框間距問題RijndaelManagedTransform直接。The CryptoStream object handles the padding issues that can occur when using RijndaelManagedTransform directly. 如需範例,請參閱RijndaelManaged類別。For an example, see the RijndaelManaged class.

同時CreateEncryptorCreateDecryptor方法傳回的執行個體RijndaelManagedTransform類別,使用目前的金鑰資訊初始化RijndaelManaged物件。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. 若要加密或解密使用 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 的淺層複本 (Shallow Copy)。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()

執行與釋放 (Free)、釋放 (Release) 或重設 Unmanaged 資源相關聯之應用程式定義的工作。Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

適用於

另請參閱