Exemple #1
0
 public static IRSA CreateWithPrivateKeyInJson(string key) => new RsaFunction(RsaKeyGenerator.GeneratePrivateKeyInJson(key));
Exemple #2
0
 /// <summary>
 /// Generate JSON Format RSA private key.
 /// </summary>
 /// <param name="keySize"></param>
 /// <returns></returns>
 public static RsaKey GeneratePrivateKeyInJson(RsaKeySize keySize) => RsaKeyGenerator.GeneratePrivateKeyInJson(keySize);
Exemple #3
0
 /// <summary>
 /// Generate JSON Format RSA private key.
 /// </summary>
 /// <param name="key"></param>
 /// <returns></returns>
 public static RsaKey GeneratePrivateKeyInJson(string key) => RsaKeyGenerator.GeneratePrivateKeyInJson(key);
Exemple #4
0
 /// <summary>
 /// Generate JSON Format RSA private key.
 /// </summary>
 /// <returns></returns>
 public static RsaKey GeneratePrivateKeyInJson() => RsaKeyGenerator.GeneratePrivateKeyInJson();