Gets or sets the secret key for the Data Encryption Standard (Crestron.SimplSharp.Cryptography.DES) algorithm.
Namespace: Crestron.SimplSharp.CryptographyAssembly: SimplSharpCryptographyInterface (in SimplSharpCryptographyInterface.dll) Version: 2.21.121
Syntaxpublic override byte[] Key { get; set; }Return Value
ByteThe secret key for the Crestron.SimplSharp.Cryptography.DES algorithm.
Exceptions| Exception | Condition |
|---|
| ArgumentNullException | An attempt was made to set the key to null. |
| ArgumentException | An 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