RijndaelManagedTransform 類別
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
使用 Rijndael 演算法執行資料的密碼編譯轉換。 此類別無法獲得繼承。
public ref class RijndaelManagedTransform sealed : System::Security::Cryptography::ICryptoTransform
[System.Runtime.InteropServices.ComVisible(true)]
public sealed class RijndaelManagedTransform : System.Security.Cryptography.ICryptoTransform
[<System.Runtime.InteropServices.ComVisible(true)>]
type RijndaelManagedTransform = class
interface ICryptoTransform
interface IDisposable
Public NotInheritable Class RijndaelManagedTransform
Implements ICryptoTransform
- 繼承
-
RijndaelManagedTransform
- 屬性
- 實作
重要
類別 Rijndael 是演算法的 Aes 前置任務。 您應該使用演算法, Aes 而不是 Rijndael。 如需詳細資訊,請參閱 .NET 安全性部落格中的 Rijndael 與 AES 之間的差異 專案。
不建議使用此類別。 如果您使用Rijndael
演算法,較佳的做法是搭配 CryptoStream 物件使用RijndaelManaged。 對象會 CryptoStream 處理直接使用 RijndaelManagedTransform 時可能發生的填補問題。 如需範例,請參閱 RijndaelManaged 類別。
CreateEncryptor和 CreateDecryptor 方法都會傳回 類別的RijndaelManagedTransform實例,這個實例是以目前 RijndaelManaged 物件的索引鍵資訊初始化。 若要使用 Rijndael 演算法加密或解密數據,請將這些方法傳回的物件傳遞 RijndaelManagedTransform 至 CryptoStream 物件。
Block |
取得區塊大小。 |
Can |
取得值,表示目前的轉換是否可重複使用。 |
Can |
取得值,表示是否有多個區塊可被轉換。 |
Input |
取得輸入區塊的大小。 |
Output |
取得輸出區塊的大小。 |
Clear() |
釋放 RijndaelManagedTransform 類別所使用的所有資源。 |
Dispose() |
釋放 RijndaelManagedTransform 類別目前的執行個體所使用的全部資源。 |
Equals(Object) |
判斷指定的物件是否等於目前的物件。 (繼承來源 Object) |
Get |
做為預設雜湊函式。 (繼承來源 Object) |
Get |
取得目前執行個體的 Type。 (繼承來源 Object) |
Memberwise |
建立目前 Object 的淺層複製。 (繼承來源 Object) |
Reset() |
重設 RijndaelManagedTransform 的內部狀態,使其能再度用來執行其他加密或解密作業。 |
To |
傳回代表目前物件的字串。 (繼承來源 Object) |
Transform |
計算輸入位元組陣列指定區域的轉換,並將產生的轉換複製到輸出位元組陣列的指定區域。 |
Transform |
計算指定位元組陣列之指定區域的轉換。 |
IDisposable. |
此 API 支援此產品基礎結構,但無法直接用於程式碼之中。 執行與釋放 (Free)、釋放 (Release) 或重設 Unmanaged 資源相關聯之應用程式定義的工作。 |
產品 | 版本 |
---|---|
.NET Framework | 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |