/// <summary> /// Generate JSON Format RSA Key. /// </summary> /// <param name="mode"></param> /// <param name="keySize">Key Size.Unit: bits</param> /// <returns></returns> public static RsaKey GenerateKeyInJson(AsymmetricKeyMode mode, RsaKeySize keySize) => Factory.GenerateKeyInJson(mode, keySize);