RijndaelManagedTransform 類別

定義

使用 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
繼承
RijndaelManagedTransform
屬性
實作

備註

注意

不建議使用這個類別。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.

和方法都會RijndaelManagedTransform傳回類別的實例,這個實例是以目前RijndaelManaged物件的索引鍵資訊初始化。 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

取得區塊大小。Gets the block size.

CanReuseTransform

取得值,表示目前的轉換是否可重複使用。Gets a value indicating whether the current transform can be reused.

CanTransformMultipleBlocks

取得值,表示是否有多個區塊可被轉換。Gets a value indicating whether multiple blocks can be transformed.

InputBlockSize

取得輸入區塊的大小。Gets the input block size.

OutputBlockSize

取得輸出區塊的大小。Gets the output block size.

方法

Clear()

釋放 RijndaelManagedTransform 類別所使用的所有資源。Releases all resources used by the RijndaelManagedTransform class.

Dispose()

釋放 RijndaelManagedTransform 類別目前的執行個體所使用的全部資源。Releases all resources used by the current instance of the RijndaelManagedTransform class.

Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(繼承來源 Object)
GetHashCode()

作為預設雜湊函數。Serves as the default hash function.

(繼承來源 Object)
GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複製。Creates a shallow copy of the current Object.

(繼承來源 Object)
Reset()

重設 RijndaelManagedTransform 的內部狀態,使其能再度用來執行其他加密或解密作業。Resets the internal state of RijndaelManagedTransform so it can be used again to do a different encryption or decryption.

ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(繼承來源 Object)
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)

計算指定位元組陣列之指定區域的轉換。Computes the transformation for the specified region of the specified byte array.

明確介面實作

IDisposable.Dispose()

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

適用於

另請參閱