AesCryptoServiceProvider.GenerateKey Method ()

 

Generates a random key to use for the algorithm.

Namespace:   System.Security.Cryptography
Assembly:  System.Core (in System.Core.dll)

public override void GenerateKey()

Exception Condition
CryptographicException

The key could not be generated.

.NET Framework
Available since 3.5
Return to top
Show: