示例#1
0
 public static IRSA CreateWithPrivateKeyInJson(string key) => new RsaFunction(RsaKeyGenerator.GeneratePrivateKeyInJson(key));
示例#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);
示例#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);
示例#4
0
 /// <summary>
 /// Generate JSON Format RSA private key.
 /// </summary>
 /// <returns></returns>
 public static RsaKey GeneratePrivateKeyInJson() => RsaKeyGenerator.GeneratePrivateKeyInJson();