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