RijndaelManaged.KeySize Property

Definition

Gets or sets the size, in bits, of the secret key used for the symmetric algorithm.

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

Property Value

The size, in bits, of the secret key used for the symmetric algorithm. The default is 256 bits.

Remarks

The valid key sizes for Rijndael are 128, 192 and 256 bits.

Applies to

Product Versions
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9
.NET Standard 2.1