Mentalis.org Security Library documentation

RC4CryptoServiceProvider.Key Property

Gets or sets the secret key for the symmetric algorithm.

[Visual Basic]
Overrides Public Property Key As Byte()
[C#]
public override byte[] Key {get; set;}

Property Value

The secret key to be used for the symmetric algorithm.

Exceptions

Exception TypeCondition
ArgumentNullExceptionAn attempt is made to set the key to a null reference (Nothing in Visual Basic).

See Also

RC4CryptoServiceProvider Class | RC4CryptoServiceProvider Members | Org.Mentalis.Security.Cryptography Namespace