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