Click or drag to resize

DESCryptoServiceProviderCreateEncryptor(Byte, Byte) Method

Creates a symmetric Data Encryption Standard (Crestron.SimplSharp.Cryptography.DES) encryptor object with the specified key (Crestron.SimplSharp.Cryptography.SymmetricAlgorithm.Key) and initialization vector (Crestron.SimplSharp.Cryptography.SymmetricAlgorithm.IV).

Namespace: Crestron.SimplSharp.Cryptography
Assembly: SimplSharpCryptographyInterface (in SimplSharpCryptographyInterface.dll) Version: 2.21.121
Syntax
C#
public override ICryptoTransform CreateEncryptor(
	byte[] rgbKey,
	byte[] rgbIV
)

Parameters

rgbKey  Byte
The secret key to use for the symmetric algorithm.
rgbIV  Byte
The initialization vector to use for the symmetric algorithm.

Return Value

ICryptoTransform
A symmetric Crestron.SimplSharp.Cryptography.DES encryptor object.
Exceptions
ExceptionCondition
CryptographicException The value of the System.Security.Cryptography.SymmetricAlgorithm.Mode property is System.Security.Cryptography.CipherMode.OFB. -or- The value of the System.Security.Cryptography.SymmetricAlgorithm.Mode property is System.Security.Cryptography.CipherMode.CFB and the value of the System.Security.Cryptography.SymmetricAlgorithm.FeedbackSize property is not 8. -or- An invalid key size was used. -or- The algorithm key size was not available.

Version Information

.NET

Supported in: 6.0

.NET Compact Framework

Supported in: 3.5
See Also