Click or drag to resize

DESKey Property

Gets or sets the secret key for the Data Encryption Standard (Crestron.SimplSharp.Cryptography.DES) algorithm.

Namespace: Crestron.SimplSharp.Cryptography
Assembly: SimplSharpCryptographyInterface (in SimplSharpCryptographyInterface.dll) Version: 2.21.121
Syntax
C#
public override byte[] Key { get; set; }

Return Value

Byte
The secret key for the Crestron.SimplSharp.Cryptography.DES algorithm.
Exceptions
ExceptionCondition
ArgumentNullExceptionAn attempt was made to set the key to null.
ArgumentExceptionAn attempt was made to set a key whose length is not equal to Crestron.SimplSharp.Cryptography.SymmetricAlgorithm.BlockSizeValue.
CryptographicException An attempt was made to set a weak key (see Crestron.SimplSharp.Cryptography.DES.IsWeakKey(System.Byte[])) or a semi-weak key (see Crestron.SimplSharp.Cryptography.DES.IsSemiWeakKey(System.Byte[])).

Version Information

.NET

Supported in: 6.0

.NET Compact Framework

Supported in: 3.5
See Also