System.Security.Cryptography.RC2CryptoServiceProvider.GenerateKey Method

Generates a random key (SymmetricAlgorithm.Key) to be used for the algorithm.

Syntax

public override void GenerateKey ()

Remarks

Use this method to generate a random key when none is specified.

The System.Security.Cryptography.RC2CryptoServiceProvider implementation supports key lengths from 40 bits to 128 bits in increments of 8 bits.

Requirements

Namespace: System.Security.Cryptography
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0