Go to the documentation of this file.
3 using System.Security.Cryptography;
7 static void Main(
string[] args) {
8 if (args ==
null || args.Length == 0) {
9 Console.WriteLine(
"Key filename not specified.");
12 string path = Directory.GetCurrentDirectory() + args[0];
13 Console.WriteLine(
"Key filename:" + path);
14 if (Console.Out!=
null) Console.Out.Flush();
19 using (var provider =
new RSACryptoServiceProvider(4096)) {
20 return provider.ExportCspBlob(!provider.PublicOnly);
static byte[] GenerateStrongNameKeyPair()