Exemple #1
0
 /// <summary>
 /// Generate Pkcs1 format RSA public key.
 /// </summary>
 /// <param name="key"></param>
 /// <returns></returns>
 public static RsaKey GeneratePublicKeyInPkcs1(string key) => Factory.GeneratePublicKeyInPkcs1(key);
Exemple #2
0
 /// <summary>
 /// Generate Pkcs1 format RSA public key.
 /// </summary>
 /// <param name="keySize">Key Size.Unit: bits</param>
 /// <param name="keepingFormat">Whether the format is true If it is standard pem file format</param>
 /// <returns></returns>
 public static RsaKey GeneratePublicKeyInPkcs1(RsaKeySize keySize, bool keepingFormat) => Factory.GeneratePublicKeyInPkcs1(keySize, keepingFormat);