private static string[] GenKeyContent() { var provider = new AesCryptoServiceProvider(); provider.GenerateIV(); provider.GenerateKey(); return(new[] { provider.GetType().AssemblyQualifiedName, Decryption.BytesToBase64(provider.IV), Decryption.BytesToBase64(provider.Key) }); }