SymmetricKeyAlgorithm.GenerateKey Method Namespace: Rebex.Security.Cryptography Assembly: Rebex.Common.dll (version 7.0.9083) GenerateKey() Generates a random key (of KeySize length). Declaration public void GenerateKey()