AesManaged.CreateEncryptor Method (Byte(), Byte())
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Creates a symmetric encryptor object using the specified key and initialization vector (IV).
Assembly: System.Core (in System.Core.dll)
'Declaration Public Overrides Function CreateEncryptor ( _ key As Byte(), _ iv As Byte() _ ) As ICryptoTransform
Parameters
- key
- Type:
System.Byte
()
The secret key to use for the symmetric algorithm.
- iv
- Type:
System.Byte
()
The initialization vector to use for the symmetric algorithm.
| Exception | Condition |
|---|---|
| ArgumentNullException | key is Nothing. |
| ArgumentException | The initialization vector iv is an invalid size. |
Show: