CreateEncryptor Method (Byte[], Byte[])
Collapse the table of content
Expand the table of content

TripleDESCryptoServiceProvider.CreateEncryptor Method (Byte[], Byte[])

.NET Framework 1.1

Creates a symmetric TripleDES encryptor object with the specified Key and initialization vector (IV).

[Visual Basic]
Overrides Overloads Public Function CreateEncryptor( _
   ByVal rgbKey() As Byte, _
   ByVal rgbIV() As Byte _
) As ICryptoTransform
[C#]
public override ICryptoTransform CreateEncryptor(
 byte[] rgbKey,
 byte[] rgbIV
);
[C++]
public: ICryptoTransform* CreateEncryptor(
 unsigned char rgbKey __gc[],
 unsigned char rgbIV __gc[]
);
[JScript]
public override function CreateEncryptor(
   rgbKey : Byte[],
 rgbIV : Byte[]
) : ICryptoTransform;

Parameters

rgbKey
The secret key to be used for the symmetric algorithm.
rgbIV
The initialization vector to be used for the symmetric algorithm.

Return Value

A symmetric TripleDES encryptor object.

Remarks

Use the CreateDecryptor overload with the same parameters to decrypt the result of this method.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

TripleDESCryptoServiceProvider Class | TripleDESCryptoServiceProvider Members | System.Security.Cryptography Namespace | TripleDESCryptoServiceProvider.CreateEncryptor Overload List | Cryptographic Services

Show:
© 2016 Microsoft