Exemple #1
0
 /// <summary>
 /// Generate RSA private key.
 /// </summary>
 /// <param name="key"></param>
 /// <param name="keyFormat"></param>
 /// <returns></returns>
 public static RsaKey GeneratePrivateKey(string key, RsaKeyFormat keyFormat = RsaKeyFormat.XML) => Factory.GeneratePrivateKey(key, keyFormat);
Exemple #2
0
 /// <summary>
 /// Generate RSA private key.
 /// </summary>
 /// <param name="keySize"></param>
 /// <param name="keyFormat"></param>
 /// <param name="keepingFormat"></param>
 /// <returns></returns>
 public static RsaKey GeneratePrivateKey(int keySize, RsaKeyFormat keyFormat = RsaKeyFormat.XML, bool keepingFormat = false) => Factory.GeneratePrivateKey(keySize, keyFormat, keepingFormat);