The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
AesManaged::CreateDecryptor Method (array<Byte>^, array<Byte>^)
.NET Framework (current version)
Creates a symmetric decryptor object using the specified key and initialization vector (IV).
Assembly: System.Core (in System.Core.dll)
public: virtual ICryptoTransform^ CreateDecryptor( array<unsigned char>^ key, array<unsigned char>^ iv ) override
Parameters
- key
-
Type:
array<System::Byte>^
The secret key to use for the symmetric algorithm.
- iv
-
Type:
array<System::Byte>^
The initialization vector to use for the symmetric algorithm.
| Exception | Condition |
|---|---|
| ArgumentNullException | key or iv is null. |
| ArgumentException | key is invalid. |
The following example shows how to use the AesManaged::CreateDecryptor method to decrypt an encrypted message. This code example is part of a larger example provided for the AesManaged class.
.NET Framework
Available since 3.5
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Available since 3.5
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Show: