DES.Key Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the secret key for the Data Encryption Standard (DES) algorithm.
public:
virtual property cli::array <System::Byte> ^ Key { cli::array <System::Byte> ^ get(); void set(cli::array <System::Byte> ^ value); };
public override byte[] Key { get; set; }
member this.Key : byte[] with get, set
Public Overrides Property Key As Byte()
Property Value
The secret key for the DES algorithm.
Exceptions
An attempt was made to set the key to null
.
An attempt was made to set a key whose length is not equal to BlockSizeValue.
An attempt was made to set a weak key (see IsWeakKey(Byte[])) or a semi-weak key (see IsSemiWeakKey(Byte[])).
Remarks
If this property is null
when it is used, GenerateKey is called to create a new random value.
The length of the key must be equal to BlockSizeValue.
This algorithm supports a key length of 64 bits.
Applies to
See also
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om