Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Creates a symmetric AES encryptor object using the specified key and initialization vector (IV).
Namespace: System.Security.Cryptography
Assembly: System.Security (in System.Security.dll)
Syntax
'Declaration
Public Overrides Function CreateEncryptor ( _
key As CryptoKey, _
iv As Byte() _
) As ICryptoTransform
public override ICryptoTransform CreateEncryptor(
CryptoKey key,
byte[] iv
)
public:
virtual ICryptoTransform^ CreateEncryptor(
CryptoKey^ key,
array<unsigned char>^ iv
) override
abstract CreateEncryptor :
key:CryptoKey *
iv:byte[] -> ICryptoTransform
override CreateEncryptor :
key:CryptoKey *
iv:byte[] -> ICryptoTransform
public override function CreateEncryptor(
key : CryptoKey,
iv : byte[]
) : ICryptoTransform
Parameters
- key
Type: System.Security.Cryptography. . :: . .CryptoKey
The secret key to use for the symmetric algorithm.
- iv
Type: array<System. . :: . .Byte> [] () [] []
The initialization vector to use for the symmetric algorithm.
Return Value
Type: System.Security.Cryptography. . :: . .ICryptoTransform
A symmetric AES encryptor object.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.