This documentation is archived and is not being maintained.

SymmetricAlgorithm.KeyValue Field

Represents the secret key for the symmetric algorithm.

[Visual Basic]
Protected KeyValue() As Byte
protected byte[] KeyValue;
protected: unsigned char KeyValue __gc[];
protected var KeyValue : Byte[];


The secret key is used both for encryption and for decryption. For a symmetric algorithm to be effective, the secret key must be known only to the sender and the receiver. The valid key sizes are specified by the particular symmetric algorithm implementation and are listed in LegalKeySizes.

This field is accessed through the Key property.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

SymmetricAlgorithm Class | SymmetricAlgorithm Members | System.Security.Cryptography Namespace | Cryptographic Services