Export (0) Print
Expand All

TripleDESCryptoServiceProvider.GenerateKey Method

Generates a random Key to be used for the algorithm.

[Visual Basic]
Overrides Public Sub GenerateKey()
[C#]
public override void GenerateKey();
[C++]
public: void GenerateKey();
[JScript]
public override function GenerateKey();

Remarks

Use this method to generate a random key when none is specified. This method will never return a weak key (see IsWeakKey).

Requirements

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

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

Show:
© 2014 Microsoft