System.Security.Cryptography.TripleDESCryptoServiceProvider.GenerateKey Method

Generates a random 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. This method will never return a weak key (see TripleDES.IsWeakKey(Byte[])).

This algorithm supports key lengths from 128 bits to 192 bits in increments of 64 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