Example #1
0
 /// <summary>
 /// 创建非对称加密提供程序
 /// </summary>
 /// <param name="providerType"></param>
 /// <returns></returns>
 public static IAsymmetricProvider CreateAsymmetric(AsymmetricProviderType providerType = AsymmetricProviderType.RSA)
 {
     return(AsymmetricProviderFactory.Create(providerType));
 }
Example #2
0
 //---------------------------------------------------------------------------------------------------------------------
 /// <summary>
 /// 创建非对称加密提供程序
 /// </summary>
 /// <param name="providerTypestr"></param>
 /// <returns></returns>
 public static IAsymmetricProvider CreateAsymmetric(string providerTypestr = "RSA")
 {
     return(AsymmetricProviderFactory.Create(providerTypestr));
 }