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