AesCryptoServiceProvider::KeySize Property


Gets or sets the size, in bits, of the secret key.

Namespace:   System.Security.Cryptography
Assembly:  System.Core (in System.Core.dll)

property int KeySize {
	virtual int get() override;
	virtual void set(int value) override;

Property Value

Type: System::Int32

The size, in bits, of the key.

The minimum size of the key is 128 bits, and the maximum size is 256 bits.

.NET Framework
Available since 3.5
Return to top