Ejemplo n.º 1
0
 public static IRSA CreateWithPublicKeyInJson(string key) => new RsaFunction(RsaKeyGenerator.GeneratePublicKeyInJson(key));
Ejemplo n.º 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);
Ejemplo n.º 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);
Ejemplo n.º 4
0
 /// <summary>
 /// Generate JSON Format RSA public key.
 /// </summary>
 /// <returns></returns>
 public static RsaKey GeneratePublicKeyInJson() => RsaKeyGenerator.GeneratePublicKeyInJson();