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.]
When overridden in a derived class, creates a symmetric encryptor object with the specified Key property and initialization vector (IV).
Namespace: System.Security.Cryptography
Assembly: System.Security (in System.Security.dll)
Syntax
'Declaration
Public MustOverride Function CreateEncryptor ( _
hKey As CryptoKey, _
rgbIV As Byte() _
) As ICryptoTransform
public abstract ICryptoTransform CreateEncryptor(
CryptoKey hKey,
byte[] rgbIV
)
public:
virtual ICryptoTransform^ CreateEncryptor(
CryptoKey^ hKey,
array<unsigned char>^ rgbIV
) abstract
abstract CreateEncryptor :
hKey:CryptoKey *
rgbIV:byte[] -> ICryptoTransform
public abstract function CreateEncryptor(
hKey : CryptoKey,
rgbIV : byte[]
) : ICryptoTransform
Parameters
- hKey
Type: System.Security.Cryptography. . :: . .CryptoKey
The secret key to use for the symmetric algorithm.
- rgbIV
Type: array<System. . :: . .Byte> [] () [] []
The initialization vector to use for the symmetric algorithm.
Return Value
Type: System.Security.Cryptography. . :: . .ICryptoTransform
A symmetric 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.