TripleDESCng.KeySize Property

Definition

Gets or sets the size, in bits, of the secret key used by the TripleDESCng algorithm.

C#
public override int KeySize { get; set; }

Property Value

The size, in bits, of the secret key used by the TripleDESCng algorithm.

Remarks

If you've created the TripleDESCng object using an existing persisted key and you set the value of the KeySize property, the persisted key will no longer be used and a temporary key will be used instead. If you need to use the persisted key again, a new instance of TripleDESCng class needs to be created.

Applies to

Product Versions
.NET Core 1.0, Core 1.1, 6, 7, 8, 9, 10
.NET Framework 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided), 2.1 (package-provided)
Windows Desktop 3.0, 3.1, 5